承接国内外服务器租用托管、定制开发、网站代运营、网站seo优化托管接单、网站代更新,新老站点皆可!!咨询QQ:3787320601
当前位置:首页  >  互联网圈  >  instr函数mysql如何写

instr函数mysql如何写

管理员 2023-03-27 09:51:19 互联网圈 34 ℃ 0 评论 702字 收藏

instr函数mysql如何写

instr函数mysql怎么写

instr函数在mysql中的用法

语法:

INSTR(str,substr)

注:

str:从哪一个字符串中搜索

substr:要搜索的子字符串

sql语句以下:

# 将instr结果作为一列,并按其排序

select id,1 from world_guide where id = 32

union

select * from

(select id, instr('30,35,31,',id+',') as d from

world_blog where id in (30,35,31) order by d) as t;

文章来源:丸子建站

文章标题:instr函数mysql如何写

https://www.wanzijz.com/view/4316.html

TAG: mysql instr 函数

相关文章

Related articles

X

截屏,微信识别二维码

微信号:weimawl

(点击微信号复制,添加好友)

打开微信