方法
第一步,查詢語句:
select* from table_name;
或
select * from table_name where [條件]
第二步,增加語句或插入數據
insert into table_name (clus...) values(values...)
實例如圖:
修改數據:update tablename set xx=xx,xxx=xx where xxx=xxx and xxx=xxx;
第四步, 刪除語句
delete table_name where 條件
實例如圖:
注意事項
注意沒行末尾的分號不能漏掉!
查詢時注意*好不能亂用,否則會導致數據庫運行負擔。最好是需要什麼字段就查詢什麼字段。