⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sp_rmedicinesetactive.sql

📁 Delphi6开发的HIS程序
💻 SQL
字号:

create or replace procedure sp_rmedicinesetactive
(
  l_reckoningid in integer
)
is
  cursor c is select * from rmedicine where reckoningid = l_reckoningid;
  r rmedicine%rowtype;
begin
  for r in c loop
    if r.isactive = 0 then
      if sp_pstockcheckout(r.pstockmedicineid, r.amount) = 0 then
        update rmedicine set isactive = 1 where rmedicineid = r.rmedicineid;
      end if;
    end if;
  end loop;
end;
/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -