MySQL Forums
Forum List  »  PHP

Re: Trouble Updating Table with Multiple Rows with Different Values
Posted by: Becca D
Date: November 09, 2015 11:11AM

This wouldn't work with my table as the table isn't set up with two separate columns for shipping and subtotal. They are included in the same column. So how do I specify what the shipping and subtotal is if they are in the same column as stated earlier and referenced below:

order_id          code             value
   1            sub_total          5.00
   1            shipping           5.00
   1            total              10.00
   2            sub_total          3.00
   2            shipping           6.00
   2            total              9.00

Options: ReplyQuote


Subject
Written By
Posted
Re: Trouble Updating Table with Multiple Rows with Different Values
November 09, 2015 11:11AM


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.