QString str=QString("select * from infromation where usename='%1' and usepassword='%2'").arg(name).arg(passward);
QString str=QString("select * from infromation where usename="%1" and usepassword="%2"").arg(name).arg(passward);
这两种方法进行拼接。
最后
以上就是粗心白猫最近收集整理的关于mysql查询语句中执行转义符的全部内容,更多相关mysql查询语句中执行转义符内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复