someone helps me solve a problem I have (beats me that is layer 8 :)), well look, if I do this sql works normal:
insert into USR_SISTEMAS VALUES ('16469', '2','3')
but if the data I want to bring a select as:
insert into USR_SISTEMAS (SIST_ID, DESCRIPCION, ALIAS) VALUES (select 16469, '2', '3' from dual)
or like this:
insert into USR_SISTEMAS (SIST_ID, DESCRIPCION, ALIAS) VALUES (select 16469 as SIST_ID,'2' AS DESCRIPCION,'3' AS ALIAS from dual)
because it simply gives me the following error:
Error que empieza en la línea: 54 del comando -
insert into USR_SISTEMAS (SIST_ID, DESCRIPCION, ALIAS) VALUES (select 16469 as SIST_ID,'2' AS DESCRIPCION,'3' AS ALIAS from dual)
Error en la línea de comandos : 54 Columna : 64
Informe de error -
Error SQL: ORA-00936: falta una expresión
00936. 00000 - "missing expression"
*Cause:
*Action:
Someone by fa helps me to decipher why is this error, I thank you in advance.
Best regards to all