以后模糊查询注意一下,一定要这么写:
select * from stu where name like concat('%',#name #,'%')
不要使用$ $, 防止sql注入。
|
|
来自: 昵称5731096 > 《java Web开发》