亮虫病伤口图片:delphi 当前时间插入问题

来源:百度文库 编辑:高考问答 时间:2024/05/03 01:57:45
repeat

form_custom_input.Caption :='客户管理';
form_custom_input.Label1.Caption :='客户管理';
form_custom_input.Label2.Caption :='客户管理';
form_custom_input.string_custom_id :='';
form_custom_input.string_mname :='';
form_custom_input.string_fname :='';
form_custom_input.string_tel :='';
form_custom_input.string_address :='';
form_custom_input.string_postcode :='';
form_custom_input.int_area :=0;
form_custom_input.int_from :=0;

form_custom_input.ShowModal ;
if form_custom_input.bYesno =false then exit;
temp:='insert into [CUSTOM]' +
'([CUSTOM_CODE],[CUSTOM_MNAME],[CUSTOM_FNAME],[CUSTOM_TEL],[CUSTOM_AREA],[CUSTOM_ADD],[CUSTOM_FROM],[CUSTOM_POST],[CUSTOM_DATE])' +
' values(''' + form_custom_input.string_custom_id +''',''' + form_custom_input.string_mname + ' '',''' +
form_custom_input.string_fname + ' '','''+
form_custom_input.string_tel + ' '','+
inttostr(form_custom_input.int_area )+ ','''+
form_custom_input.string_address + ' '',' +
inttostr(form_custom_input.int_from)+ ','''+
form_custom_input.string_postcode + ''',#' +
datetimetostr(now)+ '#)';
请大家帮忙看看,为什么提示日期语法错误,请帮忙看一下.

你用的是什么SQL,各种SQL日期的语法不同哦。可以翻一下有关网站,因该很容易找到的。