Chinaunix首页 | 论坛 | 博客
  • 博客访问: 446285
  • 博文数量: 191
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 172
  • 用 户 组: 普通用户
  • 注册时间: 2013-10-31 14:35
个人简介

没有时间把一件事情做好,却有时间把一件事情反复做!

文章分类

全部博文(191)

文章存档

2016年(2)

2015年(74)

2014年(111)

2013年(4)

我的朋友

分类: C/C++

2014-08-18 18:09:15

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() 则可以
阅读(1605) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~