Why does the SQL Query with a SUM function and a second field not work with the Database Toolbox 3.0.2 (R14SP2)?
Mostrar comentarios más antiguos
When I execute the following code against a database
conn = database('WavePlan', '', '');
curs=exec(conn, 'SELECT ALL POOL_PT,SUM(CASES) FROM ALLOCATION ');
curs
curs.message
I receive the following result
curs =
Attributes: []
Data: 0
DatabaseObject: [1x1 database]
RowLimit: 0
SQLQuery: 'SELECT ALL POOL_PT,SUM(CASES) FROM ALLOCATION '
Message: [1x161 char]
Type: 'Database Cursor Object'
ResultSet: 0
Cursor: 0
Statement: 0
Fetch: 0
curs.message=
[Microsoft][ODBC Microsoft Access Driver] You tried to execute a query that does not include the specified expression 'POOL_PT' as part of an aggregate function.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Import Data Programmatically en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!