db1=# \x Expanded display is on. db1=# SELECT * FROM information_schema.tables WHERE table_name='tab100'; -[ RECORD 1 ]----------------+----------- table_catalog | db1 table_schema | public table_name | tab100 table_type | BASE TABLE self_referencing…
读取普通的table或者系统表,都会调用heap_open函数: /* ---------------- * heap_open - open a heap relation by relation OID * * This is essentially relation_open plus check that the relation * is not an index nor a composite type. (The caller should also * check that it…
怎样用SQL语句查询一个数据库中的所有表? --读取库中的所有表名 select name from sysobjects where xtype='u'--读取指定表的所有列名select name from syscolumns where id=(select max(id) from sysobjects where xtype='u' and name='表名')获取数据库表名和字段sqlserver中各个系统表的作用sysaltfiles 主数据库 保存数据库的文件syschars…