使用select进行语句拼接的时候,直接报错
Error Code : 1583 Incorrect parameters in the call to native function 'concat'
调用本机函数“concat”时参数不正确
原sql:
select concat('hello--',case line11 when 12 then 1 when 13 then 2 else 0 end as line12,"--world") from test;
经过调试发现去掉as line12就可以正常显示了
select concat('hello--',case line11 when 12 then 1 when 13 then 2 else 0 end,"--world") from test;