update test1 set name = case
when name = 'n' then '你'
when name = 'h' then '好'
when name = 'm' then '嗎'
else '你好嗎'
end test
select id,case
when name = '你' then 'ni'
when name = '好' then 'hao'
when name = '麼' then 'me'
else 'nihaome'
end,count(*)
from test group by id,name object
select *,row_number() over(order by anniversary desc) from test1 date
select name from sys.columns where object_id=object_id('Log_Erro') --查詢表中列select