|
创建由db参数命名的数据库。 这个函数不推荐,而最好使用sql/Index.html'>mysql_query()发出一条SQLCREATEDATABASE语句。 20.4.5.2返回值如果数据库成功地被创造,零。如果发生一个错误,非零。 20.4.5.3错误sql/Index.html'>mysql_create_db">CR_COMMANDS_OUT_OF_SYNC命令以一个不正确的次序被执行。CR_SERVER_GONE_ERRORMySQL服务器关闭了。CR_SERVER_LOST对服务者的连接在查询期间失去。CR_UNKNOWN_ERROR发生一个未知的错误。 20.4.5.4范例if(sql/Index.html'>mysql_create_db(&sql/Index.html'>mysql,"my_database")){fprintf(stderr,"Failedtocreatenewdatabase.Error:%s\n",sql/Index.html'>mysql_error(&sql/Index.html'>mysql));}20.4.6sql/Index.html'>mysql_data_seek()voidsql/Index.html'>mysql_data_seek(MYSQL_RES*result,unsignedlonglongoffset)
20.4.6.1说明在一个查询结果集合中定位任意行。这要求结果集合结构包含查询的全部结果,这样sql/Index.html'>mysql_data_seek()可以仅需与sql/Index.html'>mysql_store_result()一起使用,不是与sql/Index.html'>mysql_use_result()。 偏移量应该是从0到sql/Index.html'>mysql_num_rows(result)-1范围的一个值。 20.4.6.2返回值无。 20.4.6.3错误无。 20.4.7sql/Index.html'>mysql_debug()voidsql/Index.html'>mysql_debug(char*debug)
20.4.7.1说明上一页 [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] 下一页
|