【发布时间】:2013-03-14 14:35:04
【问题描述】:
谁能帮帮我?
不知道为什么下面的SQL会报语法错误:
if not exists (select 1 from sysobjects where type='U' and name='pg_result')
create table pg_result (parent char(10), child char(10))
else
delete from pg_result
end if
我收到以下错误:
[错误] 脚本行:141-146
关键字“end”附近的语法不正确。
消息:156,级别:15,状态:2
服务器:SYBDEV,线路:5
我在跑步:
Adaptive Server Enterprise/12.5.4/EBF 16785 ESD#10/P/Sun_svr4/OS 5.8/ase1254/2159/64-bit/FBO/Mon Nov 2 13:08:08 2009
有什么想法吗?
【问题讨论】: