我想改变一个视图如下:
ALTER VIEW [dbo].[ViewOne] as
SELECT columnOne, -- not null
columnTwo, --not null
(convert(decimal(2,0), columnOne)) as columnThree -- I want this not to be NULL
FROM DBOne.TableOne
由于 columnOne 是“not null”,我想强制 columnThree 也为“not null”。是可能的、不可能的、隐含的、无用的或可能导致严重问题,因为 columnOne 是 char(2) 仅填充了 algarisms。
我只是想知道语法