mysql - strange foreign key constraint violation in child table when selecting if from parent table -


Note: ID of the book is its title

  Ignore category_book as user_id Select 1, as the 'name' category_name, BID Book book as a book, where BID Regex ('word') and not BID  

I am getting:

MySQL error 1452: Adding or updating a hair line Can be done: A foreign key constraint failed ( book . category_book , CONSTRAINT fk_category_book_book1 foreign key ( book_id )

It looks like you try to insert a record in category_book And to that which does not exist in Buk_aidi table books may be ordered Sreni_buk columns are not the same, you are providing the selection. Try the same query but the insert section shows the columns in it.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -