当前位置 : 主页 > 手机开发 > ROM >

枚举、公共扩展段查询

来源:互联网 收集:自由互联 发布时间:2021-06-10
1、枚举值查询 select h.UID,g.EValue ,g.Code,i.Name from UBF_Sys_ExtEnumValue as ginner join UBF_Sys_ExtEnumType as h on g.ExtEnumType = h.IDinner join UBF_Sys_ExtEnumValue_Trl as i on g.ID = i.ID where h.Code = ‘ DocType ‘ --DocTy

1、枚举值查询

分享图片
select h.UID,g.EValue ,g.Code,i.Name  from   UBF_Sys_ExtEnumValue as g
inner join UBF_Sys_ExtEnumType as h on g.ExtEnumType =h.ID
inner join  UBF_Sys_ExtEnumValue_Trl as i on g.ID =i.ID
where h.Code =DocType
--DocType 为枚举值类型 如:UFIDA.U9.InvDoc.TransferOut.SrcDocTypeForTransOutEnum
UBF_Sys_ExtEnumValue

2、公共扩展段查询

分享图片
select Base_DefineValue.Code,Name
from Base_DefineValue_Trl
inner join Base_DefineValue on Base_DefineValue.ID=Base_DefineValue_Trl.ID
inner join Base_ValueSetDef on Base_ValueSetDef.ID=ValueSetDef
where Base_ValueSetDef.Code=XXX   ---XXX是扩展字段值集的编码
Base_DefineValue_Trl
网友评论