`

PreparedStatement与MySQL的like

阅读更多
/*有问题:*/
select AutoID from tb_train_station where Name like '%?%')
/*OK:*/
select AutoID from tb_train_station where Name like concat('%',?,'%'))
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics