printf("输入货号单:"); char k[10]; gets(k); sprintf(sql_update, "select * from huodan where 货单号='%s'",k); res= mysql_query(&myCont,sql_update);//查询