how to create table if it doesn't exist using Derby Db
问题 I am new to apache derby and I cant seem to make work CREATE TABLE IF NOT EXISTS table1 ... as can be achieved in MySql etc. I am getting a \'Syntax error: Encountered \"NOT\" at line 1, column 17.\' , when I try to run this SQL statement in my Java program. I checked in the documentation page for Derby Db Create Statements, but couldn\'t find such an alternative. 回答1: Create the table, catch the SQLException and check SQL status code. The full list of error codes can be found here but I