首页 > 其他分享 >#和$的区别

#和$的区别

时间:2022-12-27 19:55:53浏览次数:31  
标签:insert name 区别 into score values student

#和$的区别

 #
 prestatment
  预编译,效率高
  没有sql注入攻击
 insert into student values(null,#{name},#{age},#{score})
 ​
 $
 statment
 insert into student values(null,'${name}',${age},${score})
 ​

image-20221227173250993

image-20221227173513695

标签:insert,name,区别,into,score,values,student
From: https://www.cnblogs.com/huangjiangyang/p/17008850.html

相关文章