Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-06 09:45:22
Original
1269 people have browsed it

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表出错!");
}

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!