| 发表于:2008-01-14 16:42:12 楼主 |
我用vb.net,主程序里创建了一个临时表,代码如下: dbcmd = new oledb.oledbcommand dbcmd.commandtype = commandtype.text dbcmd.connection = dbconn dbcmd.commandtext = "declare global temporary table session.tmp_yuqi " + _ " (" + _ " tclcno character(8), " + _ " tyuqijine decimal(15,2) " + _ " ) " + _ " with replace " + _ " not logged " dbcmd.EXECutenonquery() 接着我在一个被调用的子程序里使用用sql语句:inser into session.tmp_yuqi values(...) 结果出现异常,提示如下:[db2/6000] sql0204n "poc.tmp_yuqi" 是未定义的名称。 sqlstate=42704 请高手指点是什么原因?谢谢~ |
|
|
|
|