select id,title from table where title like '%$keyword%' or content like '%$keyword%'
这样大小写就会区分???如何不区分大小写检索。
...全文
573打赏收藏
sql语句的写法
php中写sql语句,连接mysql数据库执行。要求对title(varchar200)、content(text)字段进行检索包含keyword内容的记录。 keyword内容是可变的,且是英文,如何写呀? select id,title from table where title like '%$keyword%' or content like '%$keyword%' 这样大小写就会区分???如何不区分大小写检索。