易截截图软件、单文件、免安装、纯绿色、仅160KB

在存储过程中的查询delphi怎么出错

REATE procedure employee_select  @cust_num varchar(20),@ErrMsg varchar(100) out
as
            select @ErrMsg = ''
      if ((@cust_num is null ) or (@cust_num = ''))
        begin
select a.cust_num,a.cust_name,a.sex,b.sbname as custkindname,a.opername,a.opertime ,
(select c.sbname from dictionary c where c.type_id=2  and c.hold1 = a.custkind_id and c.serial_id = a.rating_id ) as cust,a.up_opername
from employee a ,dictionary b where type_id=1 and b.serial_id=a.custkind_id
return 0
end
if not exists(select * from employee where cust_num=@cust_num)
        begin
Set @ErrMsg='当前['+@cust_num+']信息不存在'
      Return -1

end
else
 
          begin
select a.cust_num,a.cust_name,a.sex,b.sbname as custkindname,a.opername,a.opertime ,
(select c.sbname from dictionary c where c.type_id=2  and c.hold1 = a.custkind_id and c.serial_id = a.rating_id ) as cust,a.up_opername
from employee a ,dictionary b where type_id=1 and b.serial_id=a.custkind_id and a.cust_num=@cust_num
  end
 
  return 0
GO
这是我的存储过程
在查询分析器里面房上参数有结果返回,
下面是在delphi的代码: <


相关问答:

Delphi 像亡国的南宋,试问这语言还有前途吗?

Delphi 像亡国的南宋,试问这语言还有前途吗?
Win32开发不如C#;
面像对像开发不如JAVA;
系统开发不如VC++6.0;
能用性不如VB6.0;
不支持Web开发。。。
出个Delphi 2010免费一年会有人用吗? ......

小弟不会DELPHI,请大侠们帮个忙

这个是拦截按键消息并测试是否为ENTER键。
  begin
    case wParam of
      WM_KEYDOWN:
      fEatKeystroke := (p.vkCode = VK_RETURN);
  & ......

Delphi 使用shockwaveflash控件的问题

我写了个小程序,上面添加了一个shockwaveflash控件,然后在movie里写入swf文件的路径,然后执行没有问题。
当我把这个程序转移到另一台电脑执行时, shockwaveflash 控件显示空白。也就是没有加载那个swf文件。 ......

Delphi怎样显示网页的一部分

Delphi
  怎样获取网页部分内容(代码),并且显示出来!
(只是网页里面的一部分内容并不是全部)
没弄懂!

类似websever的功能?
估计是利用ie的接口。。。。。。。。

是类似websever的功能 ......

高分求救,delphi写的dll反编译问题

用DEDE打开一个DLL,找到需要的函数了,但是显示的都是汇编代码,看不懂,恳请高手驻足帮忙啊!
是一个KEYPRESS响应函数,功能是在按下enter后判断输入的字符,我想按照自己的需求跳转,但是
找不到位置,高手 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号