Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

第 65 章 Functions and Operators

目錄

65.1. COUNT
65.2. group_concat() 列傳行
65.3. UUID()
65.4. String
65.4.1. LEFT/RIGHT
65.4.2. RPAD/LPAD
65.4.3. CONCAT
65.4.4. CONCAT_WS
65.4.5. 連結所有欄位
65.4.6. GROUP_CONCAT
65.4.7. replace
65.4.8. SUBSTRING
65.4.9. SUBSTRING_INDEX
65.4.10. AES_ENCRYPT / AES_DECRYPT
65.5. Date and Time
65.5.1. year/month/day hour:minite:second
65.5.2. Unix time
65.5.3. DATE_FORMAT
65.5.4. DATE_SUB/DATE_ADD
65.5.4.1. DATE_ADD
65.5.5. datediff / timediff
65.6. 數值函數
65.6.1. cast 類型轉換
65.6.2. truncate 保留小數位數
65.6.3. MOD 求余
65.7. Control Flow Functions

65.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';