MySQL Forums
Forum List  »  Italian

stored procedure complessa
Posted by: Matteo Tagliabracci
Date: August 02, 2011 10:47AM

Non sono ancora molto esperto di MySQL ed ho questo problema:
ho una tabella FATTURE, una tabella PAGAMENTI e una tabella di COLLEGAMENTO fra le due, che avrà quindi i campi id, id_fattura, id_pagamento.
Devo realizzare una stored procedure che mi accodi un record alla tabella PAGAMENTI e poi mi accodi un record alla tabella COLLEGAMENTO, prendendo id_pagamento dal record del pagamento appena accodato.
Qualcuno sa dirmi come posso ricavare l'id del pagamento appena accodato..?

Grazie

Options: ReplyQuote


Subject
Views
Written By
Posted
stored procedure complessa
2769
August 02, 2011 10:47AM
1241
August 21, 2011 06:52PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.