Describe c/c语言连接mysql here.

Date 五 09 八月 2013 By liugehao Category c.

{{{ apt-get install libmysqlclient-dev }}} {{{#!highlight sql create table t1( id integer auto_increment primary key ,name varchar(20), sex char[1]); }}} mysql.c文件: {{{#!highlight c

include

include

include

include

define MAX_COLUMN_LEN 32

int main(int argc, char argv[]) { MYSQL my_connection; MYSQL_RES result; MYSQL_ROW sql_row; MYSQL_FIELD fd; char column[MAX_COLUMN_LEN][MAX_COLUMN_LEN]; int res ...

more ...