sql="create table examination("
+"id int not null AUTO_INCREMENT primary key,"
+"title char(200) not null,"
+"content text ,"
+"test_type int,"
+"answer char(10),"
+"score int,"
+"qdate datetime)";
sql="insert into examination(title,content,test_type,answer,score,qdate)"
+" values('"+title+"','"+content+"',"+test_t+",'2/',"+score+",now())";
第一个是创建,第二个是插入,运行的时候显示错误,请问怎么改????
+"id int not null AUTO_INCREMENT primary key,"
+"title char(200) not null,"
+"content text ,"
+"test_type int,"
+"answer char(10),"
+"score int,"
+"qdate datetime)";
sql="insert into examination(title,content,test_type,answer,score,qdate)"
+" values('"+title+"','"+content+"',"+test_t+",'2/',"+score+",now())";
第一个是创建,第二个是插入,运行的时候显示错误,请问怎么改????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货