MATLAB7 + Sqlitejdbc-v056.jar Access database

Source: Internet
Author: User
Tags sqlite

The following code error occurred:
Conn=database ('data.db',"',"','Org.sqlite.JDBC','jdbc:sqlite:c:/matlab7/work/del_man_voice_from_wave/data.db');%Ping(conn);% Set (conn,'autocommit','off'); EXEC (Conn,'CREATE TABLE mytst (ID, name, score1, Score2)'); EXEC (Conn,'INSERT INTO MYTST values (1, "Zhangsan", 88.5,90)'); EXEC (Conn,'INSERT INTO MYTST values (2, "Lisi", 98.5,92);'); Curs=EXEC (Conn,'Select Id,name from Mytst') disp Aacurs=fetch (curs);% commit (conn);
???Java Exception Occurred:java.lang.IllegalStateException:SQLite jdbc:inconsistent internal state at ORG.SQLITE.R S.checkcol (Rs.java: +) at Org.sqlite.RS.getColumnCount (Rs.java:319) at Com.mathworks.toolbox.database.fetchTheData.maximumColumns (Fetchthedata.java:174). Errorinch==> Cursor.cols at -Columns=Double(maximumcolumns (cursor. Fetch,resultsetmetadata)); Errorinch==> Cursor.fetch at -NumberOfColumns=Double(cols (cursor)); Errorinch==> Test_sqlite at9Curs=fetch (Curs);

The workaround:

MATLAB7 + Sqlitejdbc-v056.jar Access database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.