SQL語句大全是一款pdf中文版的高清電子書,是目前最完整的經典珍藏版本。詳細的介紹了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%’ (所有包含‘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[separator]
發展歷史
DDLDML
DCL
SELECT 陳述式
SQL中的五種數據類型
安全問題
SQL查詢語句精華使用簡要
優化SQL十個重要步驟 簡介

使用教程
1、文檔是pdf文檔打開需要安裝“福昕閱讀器”或者“adobe reader 10.0”;2、下載完成后右鍵點擊打開方式

