This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Return field size of column in fetched data set


colsize = width(curs,colnum)


colsize = width(curs,colnum) returns the field size of the specified column number colnum in the fetched data set curs.


Retrieve the width of the first column of the fetched data set curs.

colsize = width(curs,1)

colsize =


The field size of column one is 11 characters (bytes).

To create fetched data sets using an ODBC connection, you can use the native ODBC interface. For details, see database.

Introduced before R2006a

Was this topic helpful?