Re: business users services
Posted by: Rick James
Date: September 25, 2014 04:07PM

I always CREATE TABLE _without_ giving a width for INT. SHOW CREATE TABLE always comes back _with_ a width.

I believe the only reason for explicitly saying a width is if you also say ZEROFILL, which is a rarely used option.

DECIMAL needs the width and precision.

FLOAT/DOUBLE have an optional precision, but almost always it should _not_ be specified.

VARCHAR/VARBINARY require a width.

Those that require it, use it to specify the encoding in the rows. Those that should not have it, use it for other purposes.

Options: ReplyQuote


Subject
Written By
Posted
August 02, 2014 01:02PM
August 03, 2014 04:01PM
August 31, 2014 05:56PM
September 05, 2014 01:22PM
Re: business users services
September 25, 2014 04:07PM
August 04, 2014 10:20AM


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.