select table_name from user_tab_columns where column_name = '字段名'; 查询不出来注意: 1.大小写 2.对象类型 使用user_objects或者user_segments查看类型 3.用户权限 需要创建的用户 ...
select from select from information schema.COLUMNS where table schema 数据库名 temp where column name 字段名 ...
2018-11-09 18:23 0 962 推荐指数:
select table_name from user_tab_columns where column_name = '字段名'; 查询不出来注意: 1.大小写 2.对象类型 使用user_objects或者user_segments查看类型 3.用户权限 需要创建的用户 ...
select table_name from user_tab_columns where column_name = '字段名'; 这是网上查到的,地址如下:http://blog.163.com/pei_hua100/blog/static/80569759201272114619283 ...
ora = //连接描述符名:ora (description = //描述 (address = //网络地址之一 (protocol = tcp) //网络协议(tcp表示TCP/IP协议) (h ...
select column_name,column_comment,data_type from information_schema.columns where table_name='查询表名称' and table_schema='数据库名称' 通过以上语句可以查到数据库表 ...
1,查询表中所有字段(横排):SELECT GROUP_CONCAT( COLUMN_NAME SEPARATOR "," ) FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '数据库名' AND TABLE_NAME = '表名' ...
使用下面的语句查询: 上述的做法有一点问题,如果多个数据库中存在你想要查询的表名,那么查询的结果会包括全部的字段信息。通过DESC information_schema.COLUMNS可以看到该表中列名为TABLE_SCHEMA是记录数据库名,因此下面的写法更为严格 添加数据库名 ...
1:查询数据库中所有表名 select table_name from information_schema.tables where table_schema='csdb' and table_type='base table'; table_schema:用于限定 ...