14,494 questions
Hi @Lylyy
It is a syntax error, see this doc: CASE (Transact-SQL)
Try this:
select case
when field1 = '1' then 'true'
when field1 = '0' then 'false' end
FROM temptable
--or
select case field1
when '1' then 'true'
when '0' then 'false' end
FROM temptable
Best regards,
Cosmog Hong