declare @objid int, @name varchar(50)
declare table_cursor cursor for
select id, name from sys.sysobjects where xtype='u';
open table_cursor;
fetch next from table_cursor
into @objid, @name;
while @@fetch_status = 0
begin
--insert into [asysobject]
([表名]
,[表說明]
,[字段序號]
,[欄位名]
,[標識]
,[主鍵]
,[型別]
,[長度]
,[精度]
,[小數字數]
,[允許空]
,[預設值]
,[字段說明]
,[建立時間]
,[更改時間]
,softtype)
select
d.name as 表名,
isnull(f.value, '') as 表說明,
a.colorder as 字段序號, a.name as 欄位名, case when columnproperty(a.id,
a.name, 'isidentity') = 1 then '√' else '' end as 標識,
case when exists
(select 1
from dbo.sysindexes si inner join
dbo.sysindexkeys sik on si.id = sik.id and si.indid = sik.indid inner join
dbo.syscolumns sc on sc.id = sik.id and sc.colid = sik.colid inner join
dbo.sysobjects so on so.name = si.name and so.xtype = 'pk'
where sc.id = a.id and sc.colid = a.colid) then '√' else '' end as 主鍵,
b.name as 型別, a.length as 長度, columnproperty(a.id, a.name, 'precision')
as 精度, isnull(columnproperty(a.id, a.name, 'scale'), 0) as 小數字數,
case when a.isnullable = 1 then '√' else '' end as 允許空, isnull(e.text, '')
as 預設值, isnull(g.[value], '') as 字段說明, d.crdate as 建立時間,
case when a.colorder = 1 then d.refdate else null end as 更改時間,
3from dbo.syscolumns a left outer join
dbo.systypes b on a.xtype = b.xusertype inner join
dbo.sysobjects d on a.id = d.id and d.xtype = 'u' and
d.status >= 0 left outer join
dbo.syscomments e on a.cdefault = e.id left outer join
sys.extended_properties g on a.id = g.major_id and a.colid = g.minor_id and
g.name = 'ms_description' left outer join
sys.extended_properties f on d.id = f.major_id and f.minor_id = 0 and
f.name = 'ms_description'
where
d.id=@objid
--fetch next from table_cursor
into @objid, @name;
end;
close table_cursor;
deallocate table_cursor;
go
mysql欄位說明 MySQL欄位型別說明
mysql支援大量的列型別,它可以被分為3類 數字型別 日期和時間型別以及字串 字元 型別。本節首先給出可用型別的乙個概述,並且總結每個列型別的儲存需求,然後提供每個類中的型別性質的更詳細的描述。概述有意簡化,更詳細的說明應該考慮到有關特定列型別的附加資訊,例如你能為其指定值的允許格式。由mysql...
mysql explain欄位說明
explain列的解釋 id 查詢的序列號 select type select查詢的型別,主要是區別普通查詢和聯合查詢 子查詢之類的複雜查詢。table 所訪問的資料庫中表的名稱。type 這是重要的列,顯示連線使用了何種型別。從最好到最差的連線型別為const eq reg ref range ...
ffprobe欄位說明
packet欄位說明 字段說明 codec type stream index 多 的stream索引 pts多 的顯示時間值 pts time 根據不同格式計算過後的多 的顯示時間 dts多 解碼時間 dts time 根據不同格式計算過後的多 解碼時間 duration 多 包占用的時間值 du...