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

sql 字符串查找函数

WBOY
Release: 2016-06-07 17:47:46
Original
1421 people have browsed it

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

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

sql 字符串查找函数

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template