android.database.sqlite.SQLiteException: near "tableRegister": syntax error (code 1): , while compiling: create tableRegister(user_id integer primary key autoincrement, Name text, UserName text, Password text, Age int)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by smartF
, 1 year ago
near "tableRegister": syntax error (code 1): , while compiling: create tableRegister(user_id integer primary key autoincrement, Name text, UserName text, Password text, Age int)
via Stack Overflow by Mo_Code
, 2 years ago
near "delete": syntax error (code 1): , while compiling: CREATE TABLE data_base_stuff( _id INTEGER PRIMARY KEY AUTOINCREMENT,title TEXT,color TEXT,priority TEXT,created_date TEXT,delete INTEGER)
via GitHub by DVassilev
, 2 years ago
table A already exists (code 1): , while compiling: CREATE TABLE A ( ID INTEGER PRIMARY KEY AUTOINCREMENT , C TEXT, D TEXT, E TEXT, F TEXT, G TEXT UNIQUE, H INTEGER NULL, I INTEGER )
via Stack Overflow by Andrey Rankov
, 1 year ago
near "CategoryProduct_MM": syntax error (code 1): , while compiling: DELETE CategoryProduct_MM FROM CategoryProduct_MM INNER JOIN superup.CategoryProduct_MM t2 ON CategoryProduct_MM.PrdID = t2.PrdID AND CategoryProduct_MM.CategoryID=t2.CategoryID
via Stack Overflow by Shubham Nandanwar
, 1 year ago
near "s": syntax error (code 1): , while compiling: INSERT INTO CATEGORIES (_id, SNO, SINDHI, HINDI ,ENGLISH, DRAWABLE, AUDIO, CATEGORY) values(188,9,'सस्','सास','Wife\'s or Husband\'s Mother','R.drawable.blank','R.raw.saas','Relatives');
via Stack Overflow by zoid230
, 1 year ago
near ")": syntax error (code 1): , while compiling: CREATE TABLE waiterinfo(key INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, );
android.database.sqlite.SQLiteException: near "tableRegister": syntax error (code 1): , while compiling: create tableRegister(user_id integer primary key autoincrement, Name text, UserName text, Password text, Age int)
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:58)
at android.database.sqlite.SQLiteStatement.(SQLiteStatement.java:31)
at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1675)
at tweeteve1.loginregister.DatabaseHelper.onCreate(DatabaseHelper.java:28)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:251)
at tweeteve1.loginregister.DatabaseHelper.insertData(DatabaseHelper.java:37)
at tweeteve1.loginregister.Register$1.onClick(Register.java:37)
at android.view.View.performClick(View.java:5610)
at android.view.View$PerformClick.run(View.java:22260)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
114 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.