建立/打開一個數據庫: sql
sqlite3 mysq.sqlite //mysq.sqlite 爲數據庫名 若是已存在就代開 不存在就建立
建立一個表: 數據庫
creat table myinfo(age intenger,name text); //myinfo是表名 後面是參數和類型插入一條數據:
insert into myinfo (age,name)values(22,kluermn);刪除一條數據:
delete from myinfo where name = 'kluermn';查找數據:
select * from myinfo;修改表數據:
update myinfo set name = 'mn' where age = 22;連表查詢:
select * from myinfo left join youinfo on myinfo.name = youinfo.name;