Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid SQLite exception near "/"
    primarykey
    data
    text
    <p>When I run my code, Unable to start activity ComponentInfo: android.database.sqlite.SQLiteException: near "/": syntax error..</p> <p>Why it doesn't work? Thankyou all in advance.. Here is my helper class</p> <pre><code>public class Helper extends SQLiteOpenHelper{ public static final String MYDATABASE_TABLE = "Restaurant"; public static final String KEY_ID = "_id"; public static final String KEY_CONTENT1 = "Restaurant name"; public static final String KEY_CONTENT2 = "Ac/non ac"; public static final String KEY_CONTENT3 = "Total chairs"; public static final String KEY_CONTENT4 = "Reserved chairs"; public static final String KEY_CONTENT5 = "Date"; public static final String KEY_CONTENT6 = "fromTime"; public static final String KEY_CONTENT7 = "toTime"; public static final String KEY_CONTENT8 = "Name"; public static final String KEY_CONTENT9 = "Contact Number"; public static final String KEY_CONTENT10 = "Table id"; private static final String SCRIPT_CREATE_DATABASE = "create table " + MYDATABASE_TABLE + " (" + KEY_ID + " integer primary key autoincrement, " + KEY_CONTENT1 + " text not null, " + KEY_CONTENT2 + " text not null, " + KEY_CONTENT3 + " integer not null, " + KEY_CONTENT4 + " integer not null, " + KEY_CONTENT5 + " text not null, " + KEY_CONTENT6 + " text not null, " + KEY_CONTENT7 + " text not null, " + KEY_CONTENT8 + " text not null, " + KEY_CONTENT9 + " text not null, " + KEY_CONTENT10 + " text not null) "; public Helper(Context context, String name, CursorFactory factory, int version) { super(context, name, factory, version); // TODO Auto-generated constructor stub } @Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub db.execSQL(SCRIPT_CREATE_DATABASE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO Auto-generated method stub } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload