码迷,mamicode.com
首页 > 其他好文 > 详细

POSITION(str1 IN str)

时间:2017-05-23 20:34:46      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:log   pos   sql   字符串   position   logs   bsp   osi   str   

POSITION(str1 IN str) 用于返回字符串 str1 在字符串 str 中的开始位置

mysql> SELECT POSITION(‘ball‘ IN ‘football‘);
+--------------------------------+
| POSITION(‘ball‘ IN ‘football‘) |
+--------------------------------+
| 5                              |
+--------------------------------+

 

 

 

    

POSITION(str1 IN str)

标签:log   pos   sql   字符串   position   logs   bsp   osi   str   

原文地址:http://www.cnblogs.com/pzk7788/p/6895798.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!