创建表
CREATE TABLE cookery (_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, material TEXT NOT NULL, howto TEXT NULL);
删除表
DROP TABLE ‘表名‘
添加列
ALTER TABLE '表名' ADD COLUMN ‘列名' TEXT NOT NULL
重命名列或者删除列本身不支持
重命名列
create table newtable (...)
insert into newtable select * from oldtable;
删除列
create table newtable as select attr1,attr2... from oldtable
插入行
INSERT INTO cookery (name,material) VALUES('土豆烧牛肉','牛肉')
查找行
SELECT * FROM hfood WHERE name LIKE '%肉%';
其他待添加