将json 转换成表使用 select * from json_table('["javacoder", 321, "xyz"]', "$[*]" columns (c1 varchar(26) path '$[0]') ) as t;
select * from json_table('["javacoder", 321, "xyz"]', "$[*]" columns (c1 varchar(26) path '$[0]') ) as t;
mysql 查询层级结构
select find_in_set('123', "xyz,123,javacoder.cn") #判断在字符串中是否存在指定的子串, 注意空格
select find_in_set('123', "xyz,123,javacoder.cn")
Posted in: MySQL practise
Comments are closed.
国外VPS推荐
Comments are closed.