标签:字符串 添加 字符 sel nbsp tin bsp strong color
[时间比较]
time < ‘2016-04-16‘, 需要比较的时间写成标准的字符串格式
[取字符串前两位]
left(str, 2), str表示字符串, 2表示去两位, left函数是从左往右取
[去掉重复值]
SELECT 后面添加 DISTINCT 关键字
[去掉字符串右边的空格]
使用函数 rtrim(str)
标签:字符串 添加 字符 sel nbsp tin bsp strong color
原文地址:http://www.cnblogs.com/lemonno/p/6718231.html