Hi everybody,
I have to add a number of fields to a table if those fields do not already exist.
I have been playing around with IF NOT EXISTS, but I don't get it working.
Also, I have no idea how to intercept error messages from SQlite; then I could just ignore certain error codes, a.o the error if a field already exists.
With VB I have done quite complicated things with SQL; may be that the problem is that I try to do it in the same way.
Are there some SQLite experts among the forum members?
Harry
I have to add a number of fields to a table if those fields do not already exist.
I have been playing around with IF NOT EXISTS, but I don't get it working.
Also, I have no idea how to intercept error messages from SQlite; then I could just ignore certain error codes, a.o the error if a field already exists.
With VB I have done quite complicated things with SQL; may be that the problem is that I try to do it in the same way.
Are there some SQLite experts among the forum members?
Harry