Hello everyone I have a strange problem I did my little program to manage a DB.
I do insertions and deletions of entire tables and edit table name.
Until here everything is ok but if the unanimous table I want to create starts with a number I did not create the same way if the table name eg xxx2 has a number I did not delete it.
Yet there AlterName table name is declared as a string
I do insertions and deletions of entire tables and edit table name.
Until here everything is ok but if the unanimous table I want to create starts with a number I did not create the same way if the table name eg xxx2 has a number I did not delete it.
Yet there AlterName table name is declared as a string
B4X:
sub Process_Globals
SelectedTable As String Public
As Public DB2 SQL
end Sub
'This is the Query String: rename
DB2.ExecNonQuery ("ALTER TABLE" & AlterName & "RENAME To" & NewNameList)
'This is the query string: delete table
DB2.ExecNonQuery ("DROP TABLE" & AlterName) 'deletes table
'This is the log
java.lang.Exception: android.database.sqlite.SQLiteException: near "prva2": syntax error: DROP TABLE table prva2