Creating table in Firebird script causes “unsuccessful metadata update” with deadlock
问题 I have the following script that I run using "isql -i scriptfile.sql": CONNECT C:\Databasefile.fdb USER user PASSWORD password; SET TERM !! ; EXECUTE BLOCK AS BEGIN IF (EXISTS(SELECT 1 FROM rdb$relations WHERE rdb$relation_name = 'MYTABLE')) THEN EXECUTE STATEMENT 'DROP TABLE MYTABLE;'; END!! SET TERM ; !! CREATE TABLE MYTABLE ( MYCOLUMN VARCHAR(14) NOT NULL ); The very first time I run this (when the table does not already exist) the table is created as expected. If I run the script again I