方法如下:
char create[] =
"create table npcinfo""("
"id int unsigned not null auto_increment primary key,"
"name char(8) not null,"
"sex char(4),"
"hp int unsigned,"
"mp int unsigned,"
"tel char(12) not null default ' - '"
");";
不能使用
char *,会被认为是long long 赋值到char*。