SQLite syntax error - a comma
I'm trying to copy a row in a SQLite table, but I get a syntax error: android.database.sqlite.SQLiteException: near ",": syntax error (code 1): , while compiling: INSERT INTO tokens(colour, power, ts) SELECT (colour, power, ts) FROM tokens WHERE _id = 1 My query looks like this: db.execSQL("INSERT INTO " + TABLE_TOKENS + "(" + COLUMN_COLOUR + ", " + COLUMN_POWER + ", " + COLUMN_TS + ")" + " SELECT (" + COLUMN_COLOUR + ", " + COLUMN_POWER + ", " + COLUMN_TS + ")" + " FROM " + TABLE_TOKENS + " WHERE _id = " + id); For me it looks fine and I guess it wouldn't work without commas...
The select projection is syntactically not correct. Change SELECT (colour, power, ts) to SELECT colour, power, ts.
Get website title without displaying it
Getting text of the last line of TextView Android development
Xamarin Form Android Access folder folder/emulated/0/download
Android - Empty items generated on scroll in RecyclerView
Dependency org.apache.httpcomponents:httpclient:4.2.6 is ignored for release as it may be conflicting with the internal version provided by Android
http post method not sending json object to web server
Setting sound configuration for Socket device
Seachview directing to another intent which runs php
Understanding 9-patch drawables
How to code for different kind of animated Materiliaze Expandable ListView
how to set vertical position of progress dialog
retrofit inside android library
Firebase onDataChange method on null object reference
How to kill Fragment?
How to change the text color on a TextView by clicking it?
New Firebase Initialize Crashes