#select
device_id,
case
when answer_cnt is not null then concat('答题数:', answer_cnt)
when gpa is not null then concat('gpa:', gpa)
when age is not null then concat('年龄:', age)
else '暂无关键信息'
end key_info
from
user_profile
order by
device_id
我的bug代码
select device_id,
case
when answer_cnt is not null then concat('答题数:', answer_cnt)
when gpa is not null then concat('gpa:', gpa)
when age is not null then concat('年龄:', age)
else '暂无关键信息'
end key_info
from user_profile
order by device_id
评论区答案
大家来找不同,我没看出啥区别
要不你先说下什么bug。。
贴一下错误信息看看。
另外第一行的“#select ” 中的#号是贴错了码?还是语句的一部分。
还是贴一下运行时的报错信息吧。
估计是你的文本有特殊字符。
把文本贴到untraedit,用16进制看一下。可以比对。