CREATE TABLE IF NOT EXISTS abc("abc_tnam" char(129) NOT NULL, "abc_tid" integer, "abc_ownr" char(129) NOT NULL, "abc_cnam" char(129) NOT NULL
, "abc_cid" smallint, "abc_labl" char(254), "abc_lpos" smallint, "abc_hdr" char( 254), "abc_hpos" smallint, "abc_itfy" smallint, "abc_mask" char(31), "abc_case" smallint, "abc_hght" smallint, "abc_wdth" smallint, "abc_ptrn" char(31), "abc_bm ap" char(1), "abc_init" char(254), "abc_cmnt" char(254), "abc_edit" char(31), "a bc_tag" char(254), PRIMARY KEY ("abc_tnam", "abc_ownr", "abc_cnam")); Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Igor Korot<mailto:ikoro...@gmail.com> Sent: 2016年11月22日 21:46 To: Discussion of SQLite Database<mailto:sqlite-users@mailinglists.sqlite.org>; General Discussion of SQLite Database<mailto:sqlite-us...@sqlite.org> Subject: [sqlite] CREATE TABLE fails Hi, ALL, SQLite version 3.13.0 2016-05-18 10:57:30 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> CREATE TABLE IF NOT EXISTS abc("abc_tnam" char(129) NOT NULL, "abc_tid" integer, "abc_ownr" char(129) NOT NULL, "abc_cnam" char(129) NOT NULL , "abc_cid" smallint, "abc_labl" char(254), "abc_lpos" smallint, "abc_hdr" char( 254), "abc_hpos" smallint, "abc_itfy" smallint, "abc_mask" char(31), "abc_case" smallint, "abc_hght" smallint, "abc_wdth" smallint, "abc_ptrn" char(31), "abc_bm ap" char(1), "abc_init" char(254), "abc_cmnt" char(254), "abc_edit" char(31), "a bc_tag" char(254) PRIMARY KEY "abc_tnam", "abc_ownr", "abc_cnam"); Error: near ""abc_tnam"": syntax error sqlite> Where am I wrong? Also, just out of curiosity - what symbols are allowed in the table/field name? Is there any restrictions even for "<name>" syntax? Thank you. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users