-1
My database has this structure.
I would like to know how to create the record on PEOPLE and at the same time get the ID and save it on PESSOAS_FISICAS.
I created this command for such, but it didn’t work.
select ID_PESSOAS,
NOME,
CPF,
SEXO,
ENDERECO,
COMPLEMENTO,
CIDADE,
ESTADO,
FK_ID_PESSOAS
from DB_PESSOAS, DB_PESSOAS_FISICAS
WHERE (DB_PESSOAS.ID_PESSOAS = DB_PESSOAS_FISICAS.FK_ID_PESSOAS)
The syntax is in the tag is [tag:oracle].
– Augusto Vasques
Can I do this on the same insertion screen? Or is there some other procedure to fill in?
– user9080886
Yes you can do in the same insertion screen, is register take the last ID before closing the connection and perform another registration, with the last registered ID.
– Emanuel
I haven’t been able to yet because I don’t know how to apply this in APEX, but I did some tests, and I believe it will, thank you very much.
– user9080886