-
Notifications
You must be signed in to change notification settings - Fork 22
sqlite 建表
L edited this page May 18, 2020
·
1 revision
sql
CREATE TABLE database_name.table_name(
column1 datatype PRIMARY KEY(one or more columns),
column2 datatype,
column3 datatype,
.....
columnN datatype,
);
例子
CREATE TABLE main.test_table(
id int PRIMARY KEY not null,
name TEXT not null,
sex TEXT
);