mysql_query() cannot be used for statements that contain binary data; you must use mysql_real_query() instead. (Binary data may contain the “\0” character, which mysql_query() interprets as the end of the statement string.) In addition, mysql_real_query() is faster than mysql_query() because it does not call strlen() on the statement string.  

mysql_query() 不能传二进制BLOB字段,因为二进制信息中的\0会被误判为语句结束, mysql_real_query() 则可以
阅读(707) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~
评论热议

相关文章:

  • 2021-07-03
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-17
  • 2021-09-29
  • 2022-01-20
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案