幾個簡略的根本的sql語句。本站提示廣大學習愛好者:(幾個簡略的根本的sql語句)文章只能為提供參考,不一定能成為您想要的結果。以下是幾個簡略的根本的sql語句正文
解釋:幾個簡略的根本的sql語句
選擇:select * from table1 where 規模
拔出:insert into table1(field1,field2) values(value1,value2)
刪除:delete from table1 where 規模
更新:update table1 set field1=value1 where 規模
查找:select * from table1 where field1 like '%value1%' ---like的語法很精巧,查材料!
排序:select * from table1 order by field1,field2 [desc]
總數:select count * as totalcount from table1
乞降:select sum(field1) as sumvalue from table1
均勻:select avg(field1) as avgvalue from table1
最年夜:select max(field1) as maxvalue from table1
最小:select min(field1) as minvalue from table1