我正在尝试将其重命名为DOC
:
Select Distinct
a.CID,
CONCAT (RTRIM(Name1), ' ', RTRIM(Name2)) As [Name of Policy Holder],
InsuStartDate = cast(InsuStartDate as date), --> DOC
将InsuStartDate
重命名为DOC
的可能方法是什么?
答案 0 :(得分:1)
使用如下-
Select Distinct
a.CID,
CONCAT (RTRIM(Name1), ' ', RTRIM(Name2)) As [Name of Policy Holder],
DOC = cast(InsuStartDate as date)
OR
Select Distinct
a.CID,
CONCAT (RTRIM(Name1), ' ', RTRIM(Name2)) As [Name of Policy Holder],
cast(InsuStartDate as date) DOC