| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Database Toolbox |
| Contents | Index |
| Learn more about 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 | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |