-- t_workinfo_template 工作資訊模板
if object_id(
't_workinfo_template'
)
is
not
null
drop
table
t_workinfo_template
go
create
table
t_workinfo_template
(
workinfo_template_id
char
(36)
primary
key
,
-- 主鍵
componentreference
varchar
(400),
-- 相關裝置
itemname
varchar
(200),
--
itemcontent
varchar
(2000),
-- 保養內容
period
numeric
(9,2),
-- 預檢週期
periodical
varchar
(10),
-- 週期的單位,資料取t_periodical
remark
varchar
(4000),
-- 備註
class
varchar
(20)
-- 類別
)
on
[
primary
]
go
exec
sp_addextendedproperty n
'ms_description'
, n
'主鍵'
, n
'user'
, n
'dbo'
, n
'table'
, n
't_workinfo_template'
, n
'column'
, n
'workinfo_template_id'
exec
sp_addextendedproperty n
'ms_description'
, n
'相關裝置'
, n
'user'
, n
'dbo'
, n
'table'
, n
't_workinfo_template'
, n
'column'
, n
'componentreference'
exec
sp_addextendedproperty n
'ms_description'
, n
'保養專案'
, n
'user'
, n
'dbo'
, n
'table'
, n
't_workinfo_template'
, n
'column'
, n
'itemname'
exec
sp_addextendedproperty n
'ms_description'
, n
'保養內容'
, n
'user'
, n
'dbo'
, n
'table'
, n
't_workinfo_template'
, n
'column'
, n
'itemcontent'
exec
sp_addextendedproperty n
'ms_description'
, n
'預檢週期'
, n
'user'
, n
'dbo'
, n
'table'
, n
't_workinfo_template'
, n
'column'
, n
'period'
exec
sp_addextendedproperty n
'ms_description'
, n
'週期的單位,資料取t_periodical'
, n
'user'
, n
'dbo'
, n
'table'
, n
't_workinfo_template'
, n
'column'
, n
'periodical'
exec
sp_addextendedproperty n
'ms_description'
, n
'備註'
, n
'user'
, n
'dbo'
, n
'table'
, n
't_workinfo_template'
, n
'column'
, n
'remark'
go
摘自:
sql server 檢視字段備註等資訊
select d.name as 英文表名,isnull h.value,n as 中文表名,a.colorder as 字段序號,a.name as 英文列名,isnull g.value,n as 中文列名,case when columnproperty a.id,a.name,isident...
Oracle 查詢表資訊(字段 備註)
獲取表字段 select from user tab columns where table name 使用者表 order by column name 獲取表注釋 select from user tab comments where table name 使用者表 order by table...
Oracle 查詢表資訊(字段 備註)
sql view plain copy 獲取表字段 select from user tab columns where table name 使用者表 order by column name 獲取表注釋 select from user tab comments where table name...