#1451: Cannot delete or update a parent row: a foreign key constraints fails

#1451: Cannot delete or update a parent row: a foreign key constraints fails

CodeSode

2 года назад

28,745 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@MuhammadUmar-et9nf
@MuhammadUmar-et9nf - 04.11.2023 11:28

ALTER TABLE `user_credentials` ADD CONSTRAINT `user_credentials_ibfk_1` FOREIGN KEY (`id`) REFERENCES `admin`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;

Ответить
@rakeshrathod536
@rakeshrathod536 - 18.10.2023 20:08

Thank you very much Sir ❤ muze yehi error pareshan kr rha tha

Ответить
@KamilPLGT
@KamilPLGT - 17.07.2023 11:13

the fuck is this language

Ответить
@Ruthless665
@Ruthless665 - 07.06.2023 16:40

Thank you so much , i didn't even see the rest of video i just firgured out u could change the drop action to cascade , i am like yep this is it

Ответить
@user-ke5di3qr3o
@user-ke5di3qr3o - 10.03.2023 16:07

Спасибо!

Ответить
@trangtuananh3880
@trangtuananh3880 - 09.03.2023 06:19

Thank You so much. It's very helpful!

Ответить
@dimastaqbirramdani375
@dimastaqbirramdani375 - 08.12.2022 16:32

thank you so much!!!!!

Ответить
@Jai-id7ik
@Jai-id7ik - 22.08.2022 20:53

Thank you so much. Today I resolve my issue

Ответить
@cristiandavian3706
@cristiandavian3706 - 11.08.2022 03:26

thank you man you are worder

Ответить
@dnyaneshkale9540
@dnyaneshkale9540 - 03.08.2022 15:26

Do I have to make the table on delete cascade? I would like to mannually delete corresponding rows in child table and then delete parent table entry. Is it possible.

Btw I am using postgres.
My table is like this
user table:- id, userName,password
TodoTable :- todo_id,title,description, user_id

user_id in TodoTable references id of users table.

I want to delete a particular user from users table.

Ответить
@HelderVascoTUTORIAIS
@HelderVascoTUTORIAIS - 29.07.2022 02:01

thanks

Ответить
@rafaelm_dev
@rafaelm_dev - 11.07.2022 20:00

Thanks man!

Ответить
@dsusanto
@dsusanto - 01.07.2022 21:38

thanks you sir

Ответить
@kanchanjadhav8055
@kanchanjadhav8055 - 04.06.2022 09:41

Thank you sir.

Ответить
@imenchanoufi8865
@imenchanoufi8865 - 28.04.2022 06:01

Thank youuu 💪

Ответить
@arinikm277
@arinikm277 - 12.04.2022 16:48

Thank you so much👍

Ответить
@sourabhpal6437
@sourabhpal6437 - 07.04.2022 09:32

thanks bhai

Ответить
@roywilliamvermeulen
@roywilliamvermeulen - 28.03.2022 12:25

roses are red violets are blue, the title is in english so why arent you?

Ответить
@anuragsingh4766
@anuragsingh4766 - 17.10.2021 15:07

👍

Ответить