【发布时间】:2011-08-08 11:55:58
【问题描述】:
我试过了
ObjectScope.GetSqlQuery("TRUNCATE TABLE %table_name%", null, null).Execute();
和
ObjectScope.GetOqlQuery("TRUNCATE TABLE %ClassName%Extent").Execute();
第一行什么都不做。而第二次抛出异常:
line 1:10: unexpected token: ["TABLE",<42>,line=1,col=10]
Original Query: TRUNCATE TABLE DayExtent
【问题讨论】:
-
您不应该提供表名而不是变量吗?
-
当然,在实际代码中我提供表名。我使用 %table_name% 作为占位符。
标签: .net telerik openaccess telerik-open-access