ms sql server 1.查询所有表select [id], [name] from [sysobjects] where [type] = 'u' order by [name]2.查询所有数据库3.select [name] from [sysdatabases] order by [name]查询表中字段 select [name] from [syscolumns] where [name] = 'tableXXX'order by [colid] oracle 1.查找表的所有索
在django中,使用models.py创建好一张表后,如果不指定表的名字,那么表的名字就默认为 model_modelname 例如: class Book(models.Model): id = models.AutoField(primary_key=True) title = models.CharField(max_length=100,null=False) author = models.CharField(max_length=100,null=False) price = mo
select relname as TABLE_NAME ,col_description(c.oid, 0) as COMMENTS from pg_class cwhere relkind = 'r' and relname not like 'pg_%' and relname not like 'sql_%' order by relname