我有插入多行腳本:如何在sqlite android上輸入特殊字符「,」?
protected static final String INSERT_NAME_LIST1 = "insert into Table_Name(name1,name2) VALUES (1,'aa'),(1,'bb'),(1,'cc');";
但我有錯誤:
06-21 14:15:31.155: E/AndroidRuntime(12798): Caused by: android.database.sqlite.SQLiteException: near "','": syntax error: insert into Table_Name(name1,name2) VALUES (1,'aa')',' (1,'bb')',' (1,'cc');
請幫幫我,怎麼固定的錯誤???
thx的幫助yaaa –