下記のCREATE_TABLEを呼び出したときに Caused by: android.database.sqlite.SQLiteException: near "order": syntax error (code 1): , while compiling: create table places(_id integer primary key autoincrement,place text,order integer)とのエラーが発生してしまいます。どこか文法的に誤りがあるということですよね?
どこかおかしなところありますか?
public static final String CREATE_TABLE = "create table " + SQLPlaceContract.Place.TABLE_NAME + "(" + SQLPlaceContract.Place._ID + " integer primary key autoincrement," + SQLPlaceContract.Place.PLACE + " text," + SQLPlaceContract.Place.ORDER + " integer)"; コード
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/08/28 04:58