D
D
derasoft2022-03-06 18:50:38
SQL
derasoft, 2022-03-06 18:50:38

SQL: how to fix error #1452?

I have a table like this.
6224d78fc30c9402666526.png
I want to bind the category column to the categories table.
6224d7ddc79fd351244914.png
When I try to do this, I get this error
6224d82642052114465292.png
. How can I fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2022-03-06
@derasoft

Make sure that there are no values ​​in the linked field of the child table that are absent in the linked field of the parent table and that both of these fields have exactly the same type.
And for the future - do not paste code or error messages as pictures. Copy text.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question