como eu faço para alterar a estrutura da tabela para incluir o "ON UPDATE CASCADE" e "ON DELETE CASCADE"? Eu estou usando o Postbird e pelas opções de gerenciamento das tabelas eu não sei como fazer.
@@rotkva_ns8154 No he meant the whole step. Instead of deleting the car first and then the person. He wanted to delete both in one command. I am searching for that too.
All your videos are amazing and so clear! Thanks bro! 😃
Thank you for this Sir! more power to you.
Very useful video, just what I needed!
Thanks :)
Thanks buddy ! It helps me a lots
como eu faço para alterar a estrutura da tabela para incluir o "ON UPDATE CASCADE" e "ON DELETE CASCADE"? Eu estou usando o Postbird e pelas opções de gerenciamento das tabelas eu não sei como fazer.
what if i don't want to delete the person, and also the data is not nullable?
Salem!
Thank you man :)
But explain us cascade ,please.
amazing , thank you
how to drop the foreign key constraint from the table
ALTER TABLE table DROP CONSTRAINT constraint_fkey;.
is there a way two delete both rows with a single command? instead of doing it twice?
Yes simply use the IN keyword
@@amigoscode can you elaborate more? I am using sql with netbeans (java) and I am trying to delete a row with foreign key.
@@whiteichigo880 DELETE FROM table_name WHERE field_name IN (value1, value2);
@@rotkva_ns8154 No he meant the whole step. Instead of deleting the car first and then the person. He wanted to delete both in one command. I am searching for that too.
good video, thank you
You welcome
........
.......