| 网站首页 | JAVA文章 | AppServers | Web开发 | 应用开发 | 资源下载 |
    想学好编程,外语很重要,最新的编程技术还是在国外  [enadd  2006年12月25日]        
设为首页 加入收藏 联系站长
您现在的位置: 编程笔记网 >> 数据库 >> mysql >> mysql教程 >> 文章正文
MySQL中文参考手册---20 MySQL客户工具和API            【字体:
MySQL中文参考手册---20 MySQL客户工具和API
作者:不详    文章来源:网络    点击数:    更新时间:2007-1-21

见20.4.51为什么在sql/Index.html'>mysql_query()返回成功后,sql/Index.html'>mysql_store_result()有时返回NULL?

20.4.35.2返回值

表示一个结果集合中字段数量的一个无符号整数。

20.4.35.3错误

无。

20.4.35.4范例

MYSQL_RES*result;unsignedintnum_fields;unsignedintnum_rows;if(sql/Index.html'>mysql_query(&sql/Index.html'>mysql,query_string)){//error}else//querysucceeded,processanydatareturnedbyit{result=sql/Index.html'>mysql_store_result(&sql/Index.html'>mysql);if(result)//therearerows{num_fields=sql/Index.html'>mysql_num_fields(result);//retrieverows,thencallsql/Index.html'>mysql_free_result(result)}else//sql/Index.html'>mysql_store_result()returnednothing;shouldithave?{if(sql/Index.html'>mysql_errno(&sql/Index.html'>mysql)){fprintf(stderr,"Error:%s\n",sql/Index.html'>mysql_error(&sql/Index.html'>mysql));}elseif(sql/Index.html'>mysql_field_count(&sql/Index.html'>mysql)==0){//querydoesnotreturndata//(itwasnotaSELECT)num_rows=sql/Index.html'>mysql_affected_rows(&sql/Index.html'>mysql);}}}

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] 下一页  

文章录入:enadd    责任编辑:enadd 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
  • MySQL数据的导出和导入工具:…

  • mysql授课大纲

  • mysql技巧总结

  • PPTP + MPPE + RADIUS + MyS…

  • 使用函数递归实现基于php和M…

  • 基于MySQL的高性能数据库应用…

  • Mysql日期和时间函数

  • 深圳讯天 mysql 服务器错误分…

  • 几分钟让你走进mysql的门

  • 针对 Apache 2.x 的 MySQL 用…

  •   网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 管理登录 |