Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | About

第 7 章 Functions and Operators

目錄

7.1. COUNT
7.2. group_concat() 列傳行
7.3. UUID()
7.4. String
7.4.1. LEFT/RIGHT
7.4.2. RPAD/LPAD
7.4.3. CONCAT
7.4.4. CONCAT_WS
7.4.5. 連結所有欄位
7.4.6. GROUP_CONCAT
7.4.7. replace
7.4.8. SUBSTRING
7.4.9. SUBSTRING_INDEX
7.4.10. AES_ENCRYPT / AES_DECRYPT
7.5. Date and Time
7.5.1. year/month/day hour:minite:second
7.5.2. Unix time
7.5.3. DATE_FORMAT
7.5.4. DATE_SUB/DATE_ADD
7.5.4.1. DATE_ADD
7.5.5. datediff / timediff
7.6. 數值函數
7.6.1. cast 類型轉換
7.6.2. truncate 保留小數位數
7.6.3. MOD 求余
7.7. Control Flow Functions

7.1. COUNT

count()

SELECT (SELECT count(1) FROM ecs_category) as 'Export category count',
	(SELECT count(1) FROM ecs_goods) as 'Goods count',
	(SELECT count(1) FROM ecs_goods_attr) as 'Attr count';