If you want to select specific columns from a table in Matlab, you can use the following syntax:
main.m137 chars4 lines
In this example, dbName, userName, and password should be replaced with your actual database name, username, and password. tableName should be replaced with the name of the table you want to query, and column1, column2, and column3 should be replaced with the names of the columns you want to select.
The fetch function will return the requested data in a cell array.
gistlibby LogSnag