莫
莫征文
Unregistered / Unconfirmed
GUEST, unregistred user!
原来写了这么一个创建视图的语句:
query1.close;
query1.sql.clear;
query1.sql.add('create view myview');
query1.sql.add('as select * from khxxb');
query1.sql.add('where tbsj>=_Begin and tbsj<=_End');
query1.parambyname('P_Begin').asdatetime:=Bdate.date;
query1.parambyname('P_End').asdatetime:=Edate.date;
query1.execSQL;
原来运行得好好的,后来重新装了Delphi5,SQL Server7.0后,
编译是就会抱错:incorrect syntax near the key word 'view'.
哪位大虾解决过这样的问题?请指教指教
query1.close;
query1.sql.clear;
query1.sql.add('create view myview');
query1.sql.add('as select * from khxxb');
query1.sql.add('where tbsj>=_Begin and tbsj<=_End');
query1.parambyname('P_Begin').asdatetime:=Bdate.date;
query1.parambyname('P_End').asdatetime:=Edate.date;
query1.execSQL;
原来运行得好好的,后来重新装了Delphi5,SQL Server7.0后,
编译是就会抱错:incorrect syntax near the key word 'view'.
哪位大虾解决过这样的问题?请指教指教