Powerdesigner的小Bug?

王朝厨房·作者佚名  2007-01-04
窄屏简体版  字體: |||超大  

摘要:Powerdesigner的小Bug?

使用Powerdesigner设计Sybase的存储过程时

如果使用到了临时表,则需要显示的将临时表删除以释放资料,可在下面的情况中:

...

truncate table #jsbdf

drop table #jsbdf

end

truncate table #pbbf

drop table #pbbf

...

却在执行SQL的时候报错:

*** Execution of statement failed:

[INTERSOLV][ODBC SQL Server driver][SQL Server]Incorrect syntax near the keyword ’drop’.

SQLSTATE = S1000

最终解决方法居然是在truncate table和drop table之间加上一个空注释“--”

空注释还必须单独占一行,否则仍然报错,也就是:

truncate table #pbbf

--

drop table #pbbf

就没事了

而同样情况在sybase的sql advantage下执行却没有问题

环境:

Sybase Sql Server : 11.92

Sybase Open Client : 12

Charsets : cp936

Operation System : windows 2000 chs sp4

Powerdesigner : 9.5

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航