溫馨提示×

instr函數mysql怎么寫

九三
157
2021-03-03 18:52:44
欄目: 云計算

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;

0
亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女