MySQL Forums
Forum List  »  InnoDB

Re: Help with MySQL Command
Posted by: Peter Brawley
Date: August 15, 2015 09:16AM

In a transaction, fetch max serialnum for ordernum, insert with 1 + that value

> ammount

Bad idea to use mispelled words as column names, also a bad idea to store money amounts in float or double because they round; you need exactness, so should be amount decimal(n,2) where n is big enough to accommodate the largest expected value

Options: ReplyQuote


Subject
Views
Written By
Posted
1390
August 11, 2015 12:32PM
Re: Help with MySQL Command
653
August 15, 2015 09:16AM


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.