Y
yk46
Unregistered / Unconfirmed
GUEST, unregistred user!
问题已解决,进来的富翁有分,谢谢大家. oracle表,日期字段,在delphi中怎么写插入语句. 查离线数据库不能解决,那位大侠帮个忙 ( 积分: 100 )<br />sqlExe := 'insert into Reply (TimeStart) values(to_date(''%s'',''yyyy-mm-dd hh24:mi:ss''))';
sqlTmp := format(sqlExe,[datetimetostr(dtpBegin.DateTime)])
with DMCorba.cdsquery2 do
begin
Close;
CommandText := sqlTmp;
Execute;
end;
sqlTmp := format(sqlExe,[datetimetostr(dtpBegin.DateTime)])
with DMCorba.cdsquery2 do
begin
Close;
CommandText := sqlTmp;
Execute;
end;