数据库表中的每个字段我都加了描述,比如
字段名:ID 字段描述:自动编号
字段名:USER 字段描述:用户名称
我在SQL的查询分析器中运行如下语句可以在结果窗口看到每个字段的字段描述
select syscolumns.name as 字段名称,systypes.name as 数据类型,syscolumns.length as 长度,syscolumns.isnullable,sysproperties.value as 字段描述 from syscolumns,systypes,sysproperties where syscolumns.id=object_id('tableName') and sysproperties.id=object_id('tableName') and syscolumns.colid=sysproperties.smallid and systypes.xtype=syscolumns.xtype
但是我该用什么办法在JSP文件中取得字段描述的值呢?
字段名:ID 字段描述:自动编号
字段名:USER 字段描述:用户名称
我在SQL的查询分析器中运行如下语句可以在结果窗口看到每个字段的字段描述
select syscolumns.name as 字段名称,systypes.name as 数据类型,syscolumns.length as 长度,syscolumns.isnullable,sysproperties.value as 字段描述 from syscolumns,systypes,sysproperties where syscolumns.id=object_id('tableName') and sysproperties.id=object_id('tableName') and syscolumns.colid=sysproperties.smallid and systypes.xtype=syscolumns.xtype
但是我该用什么办法在JSP文件中取得字段描述的值呢?