rule.sql
来自「This application i made for handle simpl」· SQL 代码 · 共 46 行
SQL
46 行
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 + =
减小字号Ctrl + -
显示快捷键?