1.利用sysobjects系統表查詢:在這個表中,在資料庫中建立的每個物件(例如約束、預設值、日誌、規則以及儲存過程)都有對應一行。
select * from sysobjects where xtype='u'物件型別(xtype) 值的含義:
af = aggregate function (clr)
c = check constraint
d = default or default constraint
f = foreign key constraint
l = log
fn = scalar function
fs = assembly (clr) scalar-function
ft = assembly (clr) table-valued function
if = in-lined table-function
it = internal table
p = stored procedure
pc = assembly (clr) stored-procedure
pk = primary key constraint (type is k)
rf = replication filter stored procedure
s = system table
sn = synonym
sq = service queue
ta = assembly (clr) dml trigger
tf = table function
tr = sql dml trigger 觸發器
tt = table type
u = user table
uq = unique constraint (type is k)
v = view
資料庫系統表結構查詢
1 create procedure dbo tbinfo 2 3 tbname varchar 50 4 5as 6select 7 表名 case when a.colorder 1then d.name else end 8 表說明 case when a.colorder 1then isn...
資料庫系統mysql MySQL資料庫系統
1 mysql的特點 1 多執行緒 多使用者 2 基於c s 客戶端 伺服器 架構 3 簡單易用 查詢速度快 4 安全可靠 2 mysql編譯安裝 代表鍵盤上tab鍵 1 準備工作 解除安裝使用rpm方式安裝的mysql rpm e mysql nodeps 安裝cmake包 cd media ta...
sql資料庫系統表
sysaltfiles 主資料庫 儲存資料庫的檔案 syscharsets 主資料庫 字符集與排序順序 sysconfigures 主資料庫 配置選項 syscurconfigs 主資料庫 當前配置選項 sysdatabases 主資料庫 伺服器中的資料庫 syslanguages 主資料庫 語言 ...