SQL Error :“No such table”

后端 未结 1 439
伪装坚强ぢ
伪装坚强ぢ 2021-01-26 12:37

I am trying to troubleshoot why my code returned null for all my queries and finally found that sql query returns nothing. I created a new AIR document (s:WindowedApplication) w

1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-26 13:14

    Can you verify that the path of the database you open is the one of that file you checked with external tools? You can use the database_list pragma from within you AS3 code. Just execute it as any other SQL statement:

    [user@host ~]$ cd /tmp
    [user@host tmp]$ sqlite3 foo.db
    SQLite version 3.7.11 2012-03-20 11:35:50
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> pragma database_list;
    0|main|/tmp/foo.db
    

    0 讨论(0)
提交回复
热议问题