insert into atable(a,b,c,d,e,f) values((select '12' from dual) ,(select dic_text from ctable where ctable.dic=btable.b and ctable.dicname='aa'),'34',(select dic_text from ctable where ctable.dic=btable.d and ctable.dic_name='dd') ... from btable);
直接执行select '12' as a,(select dic_text from ctable where ctable.dic=btable.b and ctable.dicname='aa') as b,'34' as c,(select dic_text from ctable where ctable.dic=btable.d and ctable.dic_name='dd') ... from btable; 出错吗?如果不出错,可能是8.0.5不支持这样的语法,需要查查8.0.5的sql参考。
错误就是在(这个地方提示缺少表达式
出错吗?如果不出错,可能是8.0.5不支持这样的语法,需要查查8.0.5的sql参考。