【转】MySQL学习笔记(三):常用函数

转载自:http://www.cnblogs.com/zhanht/p/5407800.html

一:字符串函数

需要注意的几个细节:

1.cancat中有一个字符串为null,则结果为null。

2.left(str,x) 和 right(str,x)中x为null,则不返回任何字符串,不是null.

二:数值函数

扫描二维码关注公众号,回复: 2828854 查看本文章

注意的几个细节:

1.truncate(x,y) 和 round(x,y) 都能截断,只是round会四舍五入,而truncate不会。

三:日期和时间函数

四:流程函数

五:其他函数

猜你喜欢

转载自blog.csdn.net/money9sun/article/details/81382825