其他分享
首页 > 其他分享> > 金蝶表结构查询

金蝶表结构查询

作者:互联网

select distinct f.FNumber as 系统代码, f.FName AS 系统名称,  
d.FTableName AS 表名,d.FDescription AS 表说明,a.[name] as 字段代码,c.[name] as 数据类型,  
a.[length] as 长度, e.fdescription as 字段说明,e.ffieldnote AS 备注  
from syscolumns a  
join sysobjects b on a.id = b.id  
join systypes c on c.xusertype = a.xusertype  
left outer join t_tabledescription d on (d.ftablename=b.name )  
left outer join t_subsystem f on(f.fsubsysid=d.fsubsystemid)  
left outer join t_fielddescription e on(a.name=e.ffieldname and  d.ftableid=e.ftableid)  
where d.ftableid is not null  and FTableName='t_ItemDetailV'
order by f.FNumber,d.FTableName,a.[name]

标签:join,name,金蝶,FTableName,查询,ftableid,outer,left,结构
来源: https://blog.csdn.net/qq_52358151/article/details/111587241