Home >Database >Mysql Tutorial >sql 字符串查找函数

sql 字符串查找函数

WBOY
WBOYOriginal
2016-06-07 17:47:461423browse

拼串的时候用char(39) 代替单引号,char(37)代替%

set @sql = 'select * from authors where address like '+char(39)+char(37)+@str+char(37)+char(39)

sql 字符串查找函数

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn