mybatis #與$區別mybatis
#{}變量解析到SQL有帶引號字符串;如查詢條件變量
如:select * from user where name = #{name};
爲:select * from user where name = 'Jack';字符串
${}變量解析到ORACLE是沒帶引號的字符串;如表前綴變量
如:select * from ${}.user where name 1=1;select
爲:select * from TABLEPER.user where name 1=1;查詢