摘要: 1.创建表 2.插入中英对照数据 3.用 where user_name>='吖' and user_name <'八' 来查询中首字母为A的结果 阅读全文
posted @ 2017-04-12 17:26 Nullnullisnull 阅读(1675) 评论(0) 推荐(0)
摘要: SUBSTRING_INDEX(str, delim, count) str: 要处理的字符串 delim: 分割符 count: 计数 如果为正数,则从左开始数,如果为负数,则从右开始数 使用示例: 阅读全文
posted @ 2017-04-12 15:20 Nullnullisnull 阅读(19374) 评论(1) 推荐(1)
摘要: Mysql的查询结果行字段拼接,可以用下面两个函数实现: 1. concat函数 如果连接串中存在NULL,则返回结果为NULL: 2. concat_ws函数 concat(separator,str1,str2,...) 代表 concat with separator ,是concat()的特 阅读全文
posted @ 2017-04-12 14:21 Nullnullisnull 阅读(50100) 评论(0) 推荐(1)