SqlServer字段说明查询 SELECT t.[name] AS 表名,c.[name] AS 字段名,cast(ep.[value] )) AS [字段说明] FROM sys.tables AS t INNER JOIN sys.columns AS c ON t.object_id = c.object_id LEFT JOIN sys.extended_properties AS ep AND t.name='TableName' 快速查看表结构 --快速查看表结构(比较全面的) T
mysql text字段判断是否为空 mysql text字段为空select * from `tableName` where `textField` is null or `textField` = ''; mysql text字段不为空select * from `tableName` where `textField` is not null AND `textField` != '';
大家都知道吧,这很坑,尤其是用惯了mysql里的自增字段设置,结果oracle里面没有的.oh,no 我用的是12c版本的,它有一个新特性,可以这样设置自增序列,在创建表是,把id设置为自增序列 create table t ( id number generated by default as identity (start with 1 increment by 1), name varchar2(20), password varchar2(20), Constraint Pk_
--快速查看表结构(比较全面的) THEN obj.name ELSE '' END AS 表名, col.colorder AS 序号 , col.name AS 列名 , ISNULL(ep.[value], '') AS 列说明 , t.name AS 数据类型 , col.length AS 长度 , ) AS 小数位数 , THEN '√' ELSE '' END AS 标识 , FROM dbo.sysindexes si INNER JOIN dbo.sysindexkeys si