我有3場在一份報告中(比如說,FIELDA,FIELDB,FIELDC),並希望實現以下僞代碼: IF FIELDA IS NOT NUll, SUPPRESS(hide) (FIELDB AND FIELDC)
ELSE IF FIELDB IS NOT NUll, SUPPRESS (FIELDA AND FIELDC)
ELSE IF FIELDC IS NOT NUll, SUPPRE
我知道你可以更改現有列的像this默認值: ALTER TABLE Employee ADD CONSTRAINT DF_SomeName DEFAULT N'SANDNES' FOR CityBorn;
但根據this我的查詢應該工作: ALTER TABLE MyTable ALTER COLUMN CreateDate DATETIME NOT NULL
CONSTRAINT