I have these tables in a MYSQL database:
tBook (idBook,BookName)
tAuthor (idAuthor,AuthorName)
tBookAuthor (FK_Book,FK_Author)
I want to insert in one stored procedure a new book. In the same procedure I want to insert into the table tBookAuthor.
INSERT INTO `tBook`
   (`idBook`, `BookName`)
VALUES
   (23, 'myBookName')
INSERT INTO `tBookAuthor`
   (`FK_Book`, `FK_Author`)
VALUES
   (LAST_INSERT_ID(), 526)
 
     
    