mysql c api 列表(转贴自http://blog.csdn.net/loveu131/archive/2006/07/26/982629.aspx)

转载 2011年01月13日 13:05:00

为了方便以后不再找mysql 的API,于是转了CSDN站内ID为loveu131的贴子。

 

 

Function Description
mysql_affected_rows() Returns the number of rows changed/deleted/inserted by the last UPDATEDELETE, or INSERT query.
mysql_autocommit() Toggles autocommit mode on/off.
mysql_change_user() Changes user and database on an open connection.
mysql_close() Closes a server connection.
mysql_commit() Commits the transaction.
mysql_connect() Connects to a MySQL server. This function is deprecated; use mysql_real_connect() instead.
mysql_create_db() Creates a database. This function is deprecated; use the SQL statement CREATE DATABASE instead.
mysql_data_seek() Seeks to an arbitrary row number in a query result set.
mysql_debug() Does a DBUG_PUSH with the given string.
mysql_drop_db() Drops a database. This function is deprecated; use the SQL statement DROP DATABASE instead.
mysql_dump_debug_info() Makes the server write debug information to the log.
mysql_eof() Determines whether the last row of a result set has been read. This function is deprecated; mysql_errno()or mysql_error() may be used instead.
mysql_errno() Returns the error number for the most recently invoked MySQL function.
mysql_error() Returns the error message for the most recently invoked MySQL function.
mysql_escape_string() Escapes special characters in a string for use in an SQL statement.
mysql_fetch_field() Returns the type of the next table field.
mysql_fetch_field_direct() Returns the type of a table field, given a field number.
mysql_fetch_fields() Returns an array of all field structures.
mysql_fetch_lengths() Returns the lengths of all columns in the current row.
mysql_fetch_row() Fetches the next row from the result set.
mysql_field_seek() Puts the column cursor on a specified column.
mysql_field_count() Returns the number of result columns for the most recent statement.
mysql_field_tell() Returns the position of the field cursor used for the last mysql_fetch_field().
mysql_free_result() Frees memory used by a result set.
mysql_get_client_info() Returns client version information as a string.
mysql_get_client_version() Returns client version information as an integer.
mysql_get_host_info() Returns a string describing the connection.
mysql_get_server_version() Returns version number of server as an integer.
mysql_get_proto_info() Returns the protocol version used by the connection.
mysql_get_server_info() Returns the server version number.
mysql_info() Returns information about the most recently executed query.
mysql_init() Gets or initializes a MYSQL structure.
mysql_insert_id() Returns the ID generated for an AUTO_INCREMENT column by the previous query.
mysql_kill() Kills a given thread.
mysql_library_end() Finalize MySQL C API library.
mysql_library_init() Initialize MySQL C API library.
mysql_list_dbs() Returns database names matching a simple regular expression.
mysql_list_fields() Returns field names matching a simple regular expression.
mysql_list_processes() Returns a list of the current server threads.
mysql_list_tables() Returns table names matching a simple regular expression.
mysql_more_results() Checks whether any more results exist.
mysql_next_result() Returns/initiates the next result in multiple-statement executions.
mysql_num_fields() Returns the number of columns in a result set.
mysql_num_rows() Returns the number of rows in a result set.
mysql_options() Sets connect options for mysql_connect().
mysql_ping() Checks whether the connection to the server is working, reconnecting as necessary.
mysql_query() Executes an SQL query specified as a null-terminated string.
mysql_real_connect() Connects to a MySQL server.
mysql_real_escape_string() Escapes special characters in a string for use in an SQL statement, taking into account the current character set of the connection.
mysql_real_query() Executes an SQL query specified as a counted string.
mysql_refresh() Flush or reset tables and caches.
mysql_reload() Tells the server to reload the grant tables.
mysql_rollback() Rolls back the transaction.
mysql_row_seek() Seeks to a row offset in a result set, using value returned from mysql_row_tell().
mysql_row_tell() Returns the row cursor position.
mysql_select_db() Selects a database.
mysql_server_end() Finalize embedded server library.
mysql_server_init() Initialize embedded server library.
mysql_set_local_infile_default() Set the LOAD DATA LOCAL INFILE handler callbacks to their default values.
mysql_set_local_infile_handler() Install application-specific LOAD DATA LOCAL INFILE handler callbacks.
mysql_set_server_option() Sets an option for the connection (like multi-statements).
mysql_sqlstate() Returns the SQLSTATE error code for the last error.
mysql_shutdown() Shuts down the database server.
mysql_stat() Returns the server status as a string.
mysql_store_result() Retrieves a complete result set to the client.
mysql_thread_id() Returns the current thread ID.
mysql_thread_safe() Returns 1 if the clients are compiled as thread-safe.
mysql_use_result() Initiates a row-by-row result set retrieval.
mysql_warning_count() Returns the warning count for the previous SQL statement.

j2me学习--是男人就下100层代码学习

先贴出代码随后加上自己的注释.自己感觉程序的运行效果不好但是很适合处学者学习.import javax.microedition.lcdui.*;import javax.microedition.m...
  • hydrogen2005
  • hydrogen2005
  • 2005年10月07日 22:40
  • 3135

Hive0.5中Partition简述

一、背景 1、在Hive Select查询中一般会扫描整个表内容,会消耗很多时间做没必要的工作。有时候只需要扫描表中关心的一部分数据,因此建表时引入了partition概念。 2、分区表...
  • dajuezhao
  • dajuezhao
  • 2010年07月21日 16:38
  • 3956

狗尾续貂:利用引用计数在多线程中安全释放资源

原文标题:IOCP中的socket错误和资源释放处理方法 原文作者:sodme原文地址:http://blog.csdn.net/sodme/archive/2006/04/17/666062.as...
  • SeaWave
  • SeaWave
  • 2006年05月21日 15:52
  • 6023

~~~二进制文件操作~~~

有这样一个二进制文件,大小在100M左右,里面存放了多张JPG图片,文件格式如下:无关数据区JPG图片数据区无关数据区JPG图片数据区无关数据区JPG图片数据区......已知JPG图片起始标志为:“...
  • chary8088
  • chary8088
  • 2006年11月27日 19:38
  • 4060

大数据处理的三大基石论文:GFS,MapReduce,BigTble中文译版

GFS: http://blog.csdn.net/xuleicsu/archive/2005/11/10/526386.aspx MapReduce: http://blog.csdn.net...
  • xxssyyyyssxx
  • xxssyyyyssxx
  • 2016年01月16日 13:14
  • 431

WUA API学习笔记

Widnows补丁检测最基本的方法还是通过微软自己提供的相关接口来实现比较好。这里用到得也就是Windows Update Agent API了,Windows Update Agent API其实属...
  • binzhu1987
  • binzhu1987
  • 2009年07月25日 10:48
  • 4800

.NET Framework给应用程序颁发许可证

http://www.codeguru.com/net_framework/LicensedApps.html by Kenn Scribner翻译:邹建强译者注:或许有些术语与你所见到不一致,那么请...
  • songgz
  • songgz
  • 2006年11月01日 01:34
  • 7641

随机生成 imsi imei mac

http://blog.csdn.net/argonwu/article/details/42971909 private static String getIMEI() {...
  • dacer2505
  • dacer2505
  • 2015年11月17日 10:13
  • 347

如何将java在DOMINO中发送的邮件带上附件

  如果你现在用的DOMINO6以上的客户端JAR文件去与DOMINO5的服务器打交道,那么你是死活也无法让你的邮件带上附件的。看了我的这篇文章会让你恍然大悟,呵呵!  其实说起开发环境的问题来了,D...
  • changemyself
  • changemyself
  • 2006年02月22日 11:06
  • 3500

关于生成验证码的源码以及问题解决

在网上找了一个验证码的源代码,使用后出现如下问题:不管你输入正确与否,都会提示验证码错误。后来经过在qq群里和csdn发贴咨询,得知是ie浏览器缓存问题。在经过他人的指点后改正了错误。源代码如下:--...
  • zdyguilong
  • zdyguilong
  • 2006年11月23日 17:06
  • 1013
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:mysql c api 列表(转贴自http://blog.csdn.net/loveu131/archive/2006/07/26/982629.aspx)
举报原因:
原因补充:

(最多只允许输入30个字)