Q&A

  • 이 문장에 틀린부분이 있습니까?
with query2 do try

close;

sql.Clear;

sql.Add('create view :viewfile');

sql.Add('as select * from guntae where gdate between :date1 and :date2');

parambyname('viewfile').asstring:='GV200111';

parambyname('date1').asdatetime:=strtodate('2001.11.1');

parambyname('date2').asdatetime:=strtodate('2001.11.30');

execsql;

except

messageDlg('View 생성중에러!!',mtError,[mbOK],0);

end;



에러메세지는 'view' 키워드 근처의 구문이 잘못되었습니다.

머가 틀리다고 그러는걸까요?



1  COMMENTS