Can we see query fields in Workplace?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
Can we also pull query fields into workplace when we query data? How to do it?
5 Commenti
Walter Roberson
il 23 Gen 2013
Walter Roberson
il 23 Gen 2013
Is this a Simulink question? A database question?
Walter Roberson
il 24 Gen 2013
Could you give an example of what you would like to do?
Nan Shen
il 25 Gen 2013
Risposte (1)
the cyclist
il 25 Gen 2013
There is no way that I know of to return the column names along with the data of those columns. (It would be a bit odd to do so, since the names and data may be of different types.)
You can query the metadata of the database to get column names. For example, in postgresql you can write
SELECT attname , typname FROM pg_attribute , pg_type WHERE
typrelid=attrelid AND typname = 'table_name' ;
to find the columns for the table named table_name.
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!