//查询表名称SELECT tablename FROM pg_tablesWHERE tablename NOT LIKE 'pg%'AND tablename NOT LIKE 'sql_%' ORDER BY tablename; //查询数据库名称 SELECT datname FROM pg_database; //给表列增加注释 comment on table user is 'Our session logs'; //postgresql查询注释信息 select descrip
查询Sql Server数据库对象结构 查询数据库 查询架构 查询表 查询列 查询存储过程 查询视图 1.查询某一服务器下所有数据库 select t.[name] as 数据库 from sys.databases as t order by name 2.查询某一数据库的架构 select name as 架构, schema_id as 架构Id --,principal_id from sys.schemas where principal_id = 1; 3.查询某一数据库的表 sel
直做数据库,最近花了点时间把自己常用的东西封装在一起. DBHelper using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.Common; using System.Reflection; namespace DBHelper { public sealed class DB : IDisposable { #region 数据库类型枚举