MySQL foreign key Value insert |
I made two tables
Table Name Column Name debit -> id (primary key), accountname , vid (foreign key reference to voucher.id) voucher -> id (primary key), voucher_no, I want to add voucher id no as the vid field. How do I do that with codeigniter ??? Do i need to use LAST_INSERT_QUERY(), custom fucntion? Please help me. |
Messages In This Thread |
MySQL foreign key Value insert - by rushdi1987 - 12-09-2014, 02:10 PM
RE: MySQL foreign key Value insert - by _this - 12-10-2014, 04:57 AM
RE: MySQL foreign key Value insert - by rushdi1987 - 12-10-2014, 07:10 AM
RE: MySQL foreign key Value insert - by pravins - 12-10-2014, 05:04 AM
|