sql注入是有百分號的過濾方法:
1.中括號括起百分號進行過濾操作,如:
select * from tablename where [列名] like '%[%]%' ---采用中括號括起百分號
2.采用escape指定匹配條件中轉義字符為~,對百分號進行轉義查詢,如:
select *,'1.2' as [例2] from tablename where [列名] like '%~%%' escape '~'