- 论坛徽章:
- 0
|
我的存储过程中出现一个怪异的问题,
在客户端中直接执行 过程的时候是正确的
但是用jdbc 连接执行时就报一下错误求大侠指点
Open result set error:[ declare @firstdate char( ,@lastdate char( select @firstdate='20030403', @lastdate ='20030503' if (@firstdate ='') or (@lastdate='') or (@firstdate>;=@lastdate) begin exec dateexam @firstdate,@lastdate end else EXEC sp_0603_SendBackGoods @firstdate,@lastdate,'20030','2340','234','12354' ]com.sybase.jdbc2.jdbc.SybSQLException: Invalid column name '20030403'.
提示: 是我在向临时表中插入数据的时候一个字段的值是用变量代替的,目前就是出现这个问题
方便联系 qq:1007530
我用的数据库是sybase12.5
谢谢 |
|