Home  >  Article  >  Database  >  insert-vc执行插入语句不成功是为什么?

insert-vc执行插入语句不成功是为什么?

WBOY
WBOYOriginal
2016-06-06 09:45:221218browse

insertmysqlvc

sql_update.Format(_T("insert into order_info (patient_id,order_no,order_group_no,p_name,charge_date,state,cancel_flag,start_time,end_time,win_no,order_date,recv_date,his_disp_flag) value (\"%s\",\"%s\",\"%s\",\"%s\",NOW(),6,0,NOW(),NOW(),10,NOW(),NOW(),0)"), patient_id, order_no, order_group_no,p_name);
char* a=sql_update.GetBuffer();
//mysql_query(&g_mysql,"set name 'gbk'");
if(mysql_query(&g_mysql, a) != 0)
{
MessageBox("插入order_info表出错!");
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn