(Not recommended) Retrieve names of columns in fetched data set
The columnnames
function is not recommended. There is no
replacement for this functionality. To import data, use the fetch
function. For
details, see Compatibility Considerations.
returns the column names of the data selected from a database table
in the columnlist
= columnnames(curs
)cursor
object
curs
. The columnnames
function is not supported for a cursor
object returned by the
fetchmulti
function.
returns the column names as a cell array of character vectors when
columnlist
= columnnames(curs
,returnCellArray
)returnCellArray
is set to
true
.