| 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 |
x = namecolumn(rset, n)
x = namecolumn(rset, n) maps a resultset column name n to its resultset column index. rset is the resultset and n is a string or cell array of strings containing the column names.
Get the indices for the column names DNAME and LOC resultset object rset.
x = namecolumn(rset, {'DNAME';'LOC'})
x =
2 3
The results show that DNAME is column 2 and LOC is column 3.
Get the index for only the LOC column.
x = namecolumn(rset, 'LOC')
![]() | logintimeout | ping | ![]() |

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 |