![]() |
1
2
正如我在注释中所说的,列需要定义为标量表达式。您的表达式不是标量表达式,而是布尔表达式:
你可能想要的是
|
![]() |
2
1
选择IIF(convert(smalldatetime,'2021-02-23T06:58:51')>convert(smalldatetime,GETDATE()),'True','False') |
![]() |
John D · 需要为NULL或NOT NULL的WHERE子句 4 月前 |
![]() |
Marc Guillot · 记录值时忽略冲突 5 月前 |
![]() |
Fachry Dzaky · 正确使用ROW_NUMBER 5 月前 |
![]() |
TriumphTruth · 从满足特定条件的数据集中选择1行 5 月前 |