2015年4月3日

mybatis的#{}和${}的区别以及order by注入问题

摘要: 前言略,直奔主题..#{}相当于jdbc中的preparedstatement${}是输出变量的值你可能说不明所以,不要紧我们看2段代码:String sql = "select * from admin_domain_location order by ?";PreparedStatement s... 阅读全文

posted @ 2015-04-03 12:28 蓝萝卜blu 阅读(6603) 评论(2) 推荐(3) 编辑

导航