| Database Toolbox™ | ![]() |
attributes = attr(curs, colnum)
attributes = attr(curs)
attributes = attr(curs, colnum) retrieves attribute information for:
The column number colnum
in the fetched data set curs
attributes = attr(curs) retrieves attribute information for all columns in the fetched data set curs and stores the data in a cell array.
attributes = attr(colnum) displays attributes of column colnum.
A list of returned attributes appears in the following table.
Get column attributes for the fourth column of a fetched data set.
attr(curs, 4)
ans =
fieldName: 'Age'
typeName: 'LONG'
typeValue: 4
columnWidth: 11
precision: []
scale: []
currency: 'false'
readOnly: 'false'
nullable: 'true'
Message: []
Get column attributes for curs and assign them to attributes.
attributes = attr(curs)
View the attributes of column 4.
attributes(4)
ans =
fieldName: 'Age'
typeName: 'LONG'
typeValue: 4
columnWidth: 11
precision: []
scale: []
currency: 'false'
readOnly: 'false'
nullable: 'true'
Message: []
cols, columnnames, columns, cursor.fetch,dmd, get, tables, width
![]() | Functions — Alphabetical List | bestrowid | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |