RE: mysql int(8)

by "jeremy" <jeremy(at)localnetamerica.com>

 Date:  Wed, 26 Mar 2003 10:47:52 -0500
 To:  "'Keith D Sellars'" <Keith(at)webgraffix.com>,
<hwg-languages(at)hwg.org>
 In-Reply-To:  S0026260871
  todo: View Thread, Original
Try using float(10,2) - This allows for 10 total digits; 2 to the right
of the decimal and 8 to the left of it

-----Original Message-----
From: owner-hwg-languages(at)hwg.org [mailto:owner-hwg-languages(at)hwg.org]
On Behalf Of Keith D Sellars
Sent: Wednesday, March 26, 2003 9:55 AM
To: hwg-languages(at)hwg.org
Subject: mysql int(8)

I have a quick question.  If I have a database that has a column
designated
as int(8), I know that this limits the characters to 8 digits, but does
it
restrict characters to whole numbers?  I'm trying to enter a value of
3.50
through phpMyAdmin, but it keeps entering it as 3.

Do I need to designate the column as varchar(8) instead to accomplish
this?

Thanks,
Keith D Sellars
WebGraffix
www.webgraffix.com

"Making database sites seem easy"

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.