Hello,
I have a problem in managing SQLite 3 database.
Adding a new column to table works fine.
deleting the column wether it has values or not raises an error I do'nt understand why.
''' Database with DBBrowser 3.13.1
** Database is there and SQL is initialized.
** Column GB is added to the table gbe and it's checked that it is there
** single user action no database locks
Thank you for help!
I have a problem in managing SQLite 3 database.
Adding a new column to table works fine.
deleting the column wether it has values or not raises an error I do'nt understand why.
The code::
Dim cmd As StringBuilder:cmd.initialize
cmd.Append("alter table ").Append(Tablename).append(" drop column ").Append(CellClicked)
Log(cmd.ToString) ' > alter table gbe drop column GB
sql.ExecNonQuery(cmd.tostring) '<----- Error
The Error:
Waiting for debugger to connect...
Program started.
GB
alter table gbe drop column GB
(SQLException) java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (near "drop": syntax error)
Added to Main:
#AdditionalJar: sqlite-jdbc-3.46.0.0
#AdditionalJar: slf4j-api-2.0.13
'The reference to slf4j-nop is not mandatory. However SLF4J will issue a warning, that can be ignored.
'So, for a cleaner log add this
#AdditionalJar: slf4j-nop-2.0.13.jar
''' Database with DBBrowser 3.13.1
** Database is there and SQL is initialized.
** Column GB is added to the table gbe and it's checked that it is there
** single user action no database locks
Thank you for help!
Last edited: