Mysql在准备好的声明中逃脱

时间:2013-02-06 12:18:21

标签: mysql

我需要将原始数据发送给MySQL以下准备好的声明:

const char *MYSQL_PREPARE_STMT =
"PREPARE "STMT_NAME" FROM 'INSERT INTO `srt` (record,imei,timestamp)
VALUES(?,?,?)'";

const char *MYSQL_EXECUTE_STMT_SRT = "EXECUTE "STMT_NAME" USING @1,@2,@3";

记录为BLOB

当我执行以下操作时,是否需要mysql_escape

SET @1 = '\0'; to get -> 0x00

0 个答案:

没有答案