随记

作者: NoteThat | 来源:发表于2019-03-26 20:05 被阅读0次

MySQL与 PostgreSQL

预处理(Prepared) 匿名占位符

MySQL: 使用 ? 作为匿名占位符
例:

select * from tablename where id = ? and name = ?

PostgreSQL: 使用 $ + position 作为占位符
例:

select * from tablename where id = $1 and name = $2

相关文章

网友评论

      本文标题:随记

      本文链接:https://www.haomeiwen.com/subject/skqvvqtx.html