当前位置:Gxlcms > PHP教程 > SQL语句问题

SQL语句问题

时间:2021-07-01 10:21:17 帮助过:60人阅读

select id from table where content like '%aa%'content是保存编辑器里的内容如何在搜索的时候排除标签的里关键字如   在搜aa的时候不被搜出


回复讨论(解决方案)

SQL 不具备这个能力

//不知道是否符合你要求,试下select id from table where content like '%aa%'  and content not regexp '.*aa.*\\.[jpg|png|jpeg]';

人气教程排行