String insertQuery= "INSERT INTO"+ Table_Name +"(Coloum1, Coloum2, Coloum3, Coloum4,Coloum5,Coloum6,Coloum7,Coloum8,Coloum9) VALUES('fname','lname','dob','address','pin','city','tel','eid','date')" ;
sd.execSQL(insertQuery);
我想在sqlite的分貝THROU這個代碼來寫,但它拋出一個異常:SQLiteException與Android
08-24 09:51:53.858: E/(595): Exception android.database.sqlite.SQLiteException: near "INTORegistrationTable11": syntax error: , while compiling: INSERT INTORegistrationTable11(Coloum1, Coloum2, Coloum3, Coloum4,Coloum5,Coloum6,Coloum7,Coloum8,Coloum9) VALUES('fname','lname','dob','address','pin','city','tel','eid','date')
問題標題非常棒。 –
我喜歡問題標題.. – user370305
更改您的標題 – KMI