0
使用蜂巢,我试图从一个表串联列和使用查询CONCAT_WS不是INSERT语句在工作蜂巢
insert into table temp_error
select * from (Select 'temp_test','abcd','abcd','abcd',
from_unixtime(unix_timestamp()),concat_ws('|',sno,name,age)
from temp_test_string)c;
我得到所需要的输出,直到我用Select *
另一个表中插入。但只要我尝试将它插入到表中,它不会给出串联的输出,而只给出sno的值而不是整个串联的输出。
您能否提供“desc temp_error;”,“desc temp_test_string;” –
也可以是你在给“select *”和“insert into table”时得到的单行 –
也许''|''是'temp_error'表中的分隔符? –