perl - 对于 Perl 的 DBI,是否有相当于 PHP 的 mysql_real_escape_string() 的?

标签 perl dbi mysql-real-escape-string

有人能告诉我是否有与 PHP 的 mysql_real_escape_string() 相同的函数吗?来自 DBI 的 Perl模块?

最佳答案

您应该使用 placeholders and bind values .

关于perl - 对于 Perl 的 DBI,是否有相当于 PHP 的 mysql_real_escape_string() 的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2207654/

相关文章:

python - 我需要一个简单的 python 'database',它可以在 apache 下与多个用户一起工作

perl - 我可以让一个从浏览器启动的 Perl 脚本 fork 自身,而不是等待 child 结束吗?

perl - Perl 可以将数组引用存储为散列键吗?

perl - 使用 perl DBI 和 postgresql 的连接池

excel - 为什么 Spreadsheet::XLSX 在不同的机器上解析日期不一致?

Ruby-DBI MSSQL - 当我尝试选择一个句子时,我只得到 nils 作为结果

perl - DBI:在 eval 中引发错误

php - 尝试将 $_POST 插入 MySQL 时没有任何值(value)

php - 需要 $_SESSION 变量的 mysql_real_escape_string() 吗?

php - mysql_real_escape_string() 用于整个 $_REQUEST 数组,还是需要遍历它?