旧系统代码CV多了想解放一下双手写个代码生成器,这时候就需要获取到表的某一些信息了
SELECT
a.NAME AS colname,
CONCAT(UPPER(SUBSTRING(b.name, 1, 1)), LOWER(SUBSTRING(b.name, 2,LEN(b.name)-1))) AS typename,
a.length AS length,
a.scale AS scale, a.prec AS prec, c.name,isnull(f.[value],'') as remark
FROM syscolumns a
inner join systypes b on a.xusertype = b.xusertype
inner join sysobjects c on a.id = c.id
inner join
sys.columns d on d.name=a.name
inner join
sys.objects e on d.object_id=e.object_id and e.Type='U'
left join
sys.extended_properties f on f.major_id=e.object_id and f.minor_id=d.Column_id and f.class=1
where c.name = 'tableName' and e.name='tableName'
order by a.colorder asc








![[Flutter]设置应用包名、名称、版本号、最低支持版本、Icon、启动页以及环境判断、平台判断和打包](https://img-blog.csdnimg.cn/direct/7949861475f24fb49d880e1737da4f66.png)
![[Mac软件]Adobe Substance 3D Stager 2.1.4 3D场景搭建工具](https://img-blog.csdnimg.cn/img_convert/43e1e340d57b052e19205822f8611f47.png)









