like防止sql注入的示例:
在不同數據庫下的用法不同,例如:
//mysql環境
select * from test where school_name like concat('%',${name},'%')
//oracle環境
select * from test where school_name like '%'||${name},'%'
//SQL Server環境
select * from test where school_name like '%'+${name},+'%'