获取表名称和字段类型
oracle :
select * from USER_TAB_COLUMNS where table_name = 'city_info';
sqlserver:
167 = varchar
select * from syscolumns where xtype = '167' and id in(select id from sysobjects where name = 'city_info' );
本文介绍如何使用 SQL 语句查询 Oracle 和 SQL Server 中 'city_info' 表的字段类型及表结构信息。针对不同数据库提供了具体的 SQL 查询语句。
获取表名称和字段类型
oracle :
select * from USER_TAB_COLUMNS where table_name = 'city_info';
sqlserver:
167 = varchar
select * from syscolumns where xtype = '167' and id in(select id from sysobjects where name = 'city_info' );

被折叠的 条评论
为什么被折叠?