USER 0 Posted May 28, 2020 Report Share Posted May 28, 2020 Estou tentando fazer um INSERT em um banco PostgreSQL, no qual um dos campos é primary key e character varying. Existe alguma função que eu posso utilizar para preencher esse campo automaticamente? Quote Link to post Share on other sites
0 atf 0 Posted June 8, 2020 Report Share Posted June 8, 2020 Preenchimento automático existe para chave numérica, bastando definí-la com "serial". Para "varchar" não dá para adivinhar a próxima chave, né?!?! Quote Link to post Share on other sites
Question
USER 0
Estou tentando fazer um INSERT em um banco PostgreSQL, no qual um dos campos é primary key e character varying.
Existe alguma função que eu posso utilizar para preencher esse campo automaticamente?
Link to post
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.