Comparing fields of one table to other fields of another table

Posted by chupinette on Stack Overflow See other posts from Stack Overflow or by chupinette
Published on 2010-04-01T21:50:04Z Indexed on 2010/04/01 21:53 UTC
Read the original article Hit count: 563

Filed under:
|

Hello! I have a function called add_item which actually inserts values in a field item_name of temporary table called temp having fields temp_id and item_name. I have another table calleed item which consists of fields item_id, item_name, price. I have another table called quotation which consists of fields q_id, item_id,item_name,price. Now I cant figure out how do i compare the item_name from temp to the field item_name from item. And then, insert the values of item in quoatation table. Can anyone guide me please?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php