
轻设计 / 轻生活 / 轻日记 / 轻梦想
=== zhoumojianshe ===
-- 删除约束 sql
alter table "000".tbContract drop constraint DF__tbContrac__Remar__069A5CD2
-- Sql Server查看表结构语句
exec sp_help '"000".tbContract'
-- Order By中使用case when的方法
Order by S.DataType,case when S.PurchMoney < 0.005 then 0 else 1 end, S.NodeCode,S.AccDate, S.BillNumber
-- Sql Server 禁用或启用表约束
alter table "000".tbUnPayDetails NOCHECK constraint all;//禁用表约束
alter table "000".tbUnCheckPays CHECK constraint all;//启用表约束