當我在iPhone應用程序運行下面的查詢iPhone sqlite3的問題 - 「沒有這樣的列」
@"select name, identifier, score, delta from startups order by name ASC"
我得到我的日誌以下錯誤:
sqlite error: no such column: score
但是,當運行編譯table_info (創業公司)在我的sqlite3的數據庫產生如下:
sqlite> pragma table_info(startups);
0|id|INTEGER|0||1
1|name|TEXT|0||0
2|identifier|TEXT|0||0
3|score|DOUBLE|0|'0'|0
4|delta|DOUBLE|0|'0'|0
5|cached|INTEGER|0|'0'|0
我已經運行清理並生成幾次,三日檢查e分貝,並不能找出爲什麼這個錯誤出現。任何幫助都是極好的。
謝謝,StackOverflow!
非常感謝。你從一個小時的掙扎中拯救了我! – NightFury 2014-02-12 11:10:22