第 53 章 Functions and Operators

简介:

目录

53.1. COUNT
53.2. group_concat() 列传行
53.3. UUID()
53.4. String
53.4.1. LEFT/RIGHT
53.4.2. RPAD/LPAD
53.4.3. CONCAT
53.4.4. CONCAT_WS
53.4.5. 链接所有字段
53.4.6. GROUP_CONCAT
53.4.7. replace
53.4.8. SUBSTRING
53.4.9. SUBSTRING_INDEX
53.4.10. AES_ENCRYPT / AES_DECRYPT
53.5. Date and Time
53.5.1. year/month/day hour:minite:second
53.5.2. Unix time
53.5.3. DATE_FORMAT
53.5.4. DATE_SUB/DATE_ADD
53.5.4.1. DATE_ADD
53.5.5. datediff / timediff
53.6. 数值函数
53.6.1. cast 类型转换
53.6.2. truncate 保留小数位数
53.6.3. MOD 求余
53.7. Control Flow Functions

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





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
9天前
|
缓存 JavaScript 前端开发
|
自然语言处理
Reading the Manual: Event Extraction as Definition Comprehension, EMNLP 2020
Reading the Manual: Event Extraction as Definition Comprehension, EMNLP 2020
84 0
Reading the Manual: Event Extraction as Definition Comprehension, EMNLP 2020
|
Python
Python编程:Built-in Functions内建函数小结
Python编程:Built-in Functions内建函数小结
172 0
underscore 系列之防冲突与 Utility Functions
underscore 使用 _ 作为函数的挂载对象,如果页面中已经存在了 _ 对象,underscore 就会覆盖该对象,所以 underscore 提供了 noConflict 功能,可以放弃 underscore 的控制变量 _,返回 underscore 对象的引用。
138 0
underscore 系列之防冲突与 Utility Functions
|
PHP 移动开发