请大家帮我看看这个问题怎么解决?(我已经在数据源中注册了SampleDB,然后运行了在网上搜到的dbimportdemo())
timeoutA =
5
connA =
Instance: 'SampleDB'
UserName: ''
Driver: []
URL: []
Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
Message: []
Handle: [1x1 sun.jdbc.odbc.JdbcOdbcConnection]
TimeOut: 5
AutoCommit: 'on'
Type: 'Database Object'
ans =
DatabaseProductName: 'ACCESS'
DatabaseProductVersion: '04.00.0000'
JDBCDriverName: 'JDBC-ODBC Bridge (odbcjt32.dll)'
JDBCDriverVersion: '2.0001 (04.00.6304)'
MaxDatabaseConnections: 64
CurrentUserName: 'admin'
DatabaseURL: 'jdbc:odbc:SampleDB'
AutoCommitTransactions: 'True'
cursorA =
Attributes: []
Data: 0
DatabaseObject: [1x1 database]
RowLimit: 0
SQLQuery: 'select country from customers'
Message: 'Invalid Cursor'
Type: 'Database Cursor Object'
ResultSet: 0
Cursor: 0
Statement: 0
Fetch: 0
AA =
0
??? Function 'closeSqlStatement' is not defined for a first argument of class 'double'.
Error in ==> cursor.close at 20
message = closeSqlStatement(cursor.Cursor,cursor.Statement);
Error in ==> dbimportdemo at 71
close(cursorA)