SQL更新-金蝶k3-科目属性(银行科目,现金科目)
--------------------------------------------------
--更新会计科目表的某些属性--现金科目
update t_Account
set FIsCash = 1 --现金科目打钩(0为不打勾)
, FJournal = 1 --出日记账打钩(0为不打勾)
where FNumber = '1001'
--更新会计科目表的某些属性--银行科目
update t_Account
set FIsBank = 1 --银行科目打钩(0为不打勾)
, FJournal = 1 --出日记账打钩(0为不打勾)
where FNumber like '1002%'
--------------------------------------------------
--查看更新结果:会计科目表
select FIsCash as 现金科目
, FIsBank as 银行科目
, FJournal as 出日记账
, *
from t_Account
--********************************************************
注意事项:
1.不熟悉金蝶软件,请勿随意执行
2.1.执行前,请做好账套备份
2.2.执行后,请详细检查账表数据
---------------------------------