select * from t where instr(cnation,'中国')>0;
select * from t where cnation like '%中国%';
instr约快1/3
本文介绍了两种SQL查询方法:使用INSTR函数和LIKE子句来搜索包含特定字符串的数据记录。通过对比这两种方式,文章指出INSTR函数在某些情况下可以更快地完成查询任务。
select * from t where instr(cnation,'中国')>0;
select * from t where cnation like '%中国%';
instr约快1/3
599
4433
1176
1322

被折叠的 条评论
为什么被折叠?