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

📄 rule.sql

📁 This application i made for handle simple finance this project using VB 6.0, SQL Server 2000 wit
💻 SQL
字号:


use Finance;
go


-- ### PayMethod ###################################################################

if (exists (select name, type from sysobjects where (name = 'PayMethod') and (type = 'R')))
begin
  execute sp_unbindrule 'MainTransaction.SistemBayar';
  drop rule PayMethod;
end
go

create rule PayMethod as
(
  (@pm >= 0) and (@pm <= 3)
)
go

execute sp_bindrule 'PayMethod', 'MainTransaction.SistemBayar';
go


-- ### Mutasi ######################################################################

if (exists (select name, type from sysobjects where (name = 'Mutasi') and (type = 'R')))
begin
  execute sp_unbindrule 'Account.Mutasi';
  drop rule Mutasi;
end

go

create rule Mutasi as
(
  @mr in ('D', 'K')
)
go

execute sp_bindrule 'Mutasi', 'Account.Mutasi';
go


⌨️ 快捷键说明

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