算是mark一下,第一次通過語句給列加注釋。
--建表
create table "shmc"."bh_assess_kpi_work_order"(
"id" bigint not null generated by default as identity (
start with 1,
increment by 1,
cache 20,
no minvalue,
no maxvalue,
no cycle,
no order
),"work_order_num" varchar(20),
"trandate" varchar(10),
"branch_name" varchar(100),
"order_status" varchar(10),
"current_status" varchar(10),
"submit_time" varchar(20),
"submit_person" varchar(10),
"operate_name" varchar(10)
--加注釋
comment on "shmc"."bh_assess_kpi_work_order" (
"id" is '自然主鍵',
"work_order_num" is '工單編號' ,
"trandate" is '日期',
"branch_name" is '分公司',
"order_status" is '工單狀態',
"current_status" is '當前狀態',
"submit_time" is '提交時間',
"submit_person" is '提交人',
"operate_name" is '操作'
);
SQL Server SQL語句匯入匯出大全
匯出到excel exec master.xp cmdshell bcp settledb.dbo.shanghu out c temp1.xls c q s gnetdata gnetdata u sa p 匯入excel select from opendatasource microsoft....
SQL SERVER SQL 語句查詢列出庫和表
一 列出資料庫 1.列出所有庫 1 2 3 use master go selectname,dbidfrommaster.dbo.sysdatabases 2.只列出使用者庫 1 2 3 use master go selectname,dbidfrommaster.dbo.sysdatabase...
SqlServer SQL語句查詢時顯示執行效能
官方詳細參考 1 顯示分析 編譯和執行各語句所需的毫秒數。tf pos為查詢的表 set statistics time on go select from tf pos goset statistics time off go 顯示的結果如下 2 使 sql server 顯示有關由 transa...