sqlserver2000的查询分析器里可用,在PB里却取不出数据,点改

james_lq 2003-07-31 06:00:22
SELECT #temp_comm.comm_code, #temp_comm.mo, isnull(ac_bill_detail.qty,0) * isnull(ac_cal_logic.cal_logic,0), 0, 0, 0
FROM #temp_comm, ac_bill, ac_bill_detail,ac_cal_logic
WHERE ac_bill.computer_no = ac_bill_detail.computer_no
and ac_bill_detail.comm_code = #temp_comm.comm_code
and (ac_bill.occur_date >= #temp_comm.stock_start and ac_bill.occur_date < #temp_comm.start_date)
and (ac_cal_logic.stock_type = 'CPC' or ac_cal_logic.stock_type = 'FCPC')
and ac_bill.bill_type_code = ac_cal_logic.bill_type_code
and ac_bill.audit_status = 1
and #temp_comm.comm_type = 0
...全文
58 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
james_lq 2003-09-12
  • 打赏
  • 举报
回复
我自己解决了,一点错也没有,是PB的问题
james_lq 2003-08-01
  • 打赏
  • 举报
回复
靠,就是没错误,没任何提示
而且,查询分析器里可正确执行
LQZ0926 2003-08-01
  • 打赏
  • 举报
回复
你是不是忘了加上分号(;)?在PB里面要执行sql语句,后面要有分号(;)的。

你可以加上一段代码,来给出提示,尤其是要保证上面你的那段代码确实被执行了!!!
edisonwong 2003-08-01
  • 打赏
  • 举报
回复
带 # 的是临时表,你前面肯定还有代码,是存储过程么?
edisonwong 2003-07-31
  • 打赏
  • 举报
回复
能否把出错信息写详细点?

752

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧