Below is the list of changes that have just been committed into a local5.0 repository of igor. When ...
By igor
Explain MySQL architecture. - The front layer takes care of network connections and security authent...
By sunarampatir
X-Priority: 3X-MSMail-Priority: Normal---=134_0850_7V350V86.96VK945WContent-Type: text/html;Content-...
By sonyaayala
Mark Phillips <mark (AT) phillipsmarketing (DOT) bizwrote on 12/14/2005 11:31:03AM:I am using MyS...
By sgreen
Hi,one small question. Is It possible to do queries of this type with MySQLusing JDBC? I would like ...
By christofer_dutz, 4 Comments
I've created and populated two simple tables:create table a (id serial, d integer)insert a (d) ...
By brentb_powers, 1 Comments
Here's a quick one...I know the results of a select statement are going to have 3 values. For t...
By dseltzer, 2 Comments
Hi there,I thought you guys could help me with a performance problem Im experiencing with MySQL. Ple...
By rilsonnascimento, 1 Comments
I am using WinXP, GNU Emacs 23, MySQL 5.When I start a mysql process with `sql-mysql' in emacs, no o...
By sparkw, 2 Comments
NotVeryBright wrote:
> Hello
> I'm trying to create a table as below
> CREATE TABLE MyTable (ID FLOAT NOT NULL PRIMARY KEY ZEROFILL, Forename
> VARCHAR(30),Surname VARCHAR(30));
> If I remove ZEROFILL it works ok
> But with ZEROFILL I get and error (1064)
> I've tried ZEROFILL in different places and I'm stumped.
> Please help
> Best regards and thanks in advance
Try:
CREATE TABLE MyTable (ID FLOAT ZEROFILL NOT NULL PRIMARY KEY, Forename
VARCHAR(30),Surname VARCHAR(30));
From the DOCS:
>http://dev.mysql.com/doc/refman/5.0...e-overview.html
FLOAT[(M,D)] [UNSIGNED] [ZEROFILL]
A small (single-precision) floating-point number. Allowable values are
-3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to
3.402823466E+38. These are the theoretical limits, based on the IEEE
standard. The actual range might be slightly smaller depending on your
hardware or operating system.
M is the total number of decimal digits and D is the number of digits
following the decimal point. If M and D are omitted, values are stored to
the limits allowed by the hardware. A single-precision floating-point
number is accurate to approximately 7 decimal places.
If you specify ZEROFILL for a numeric column, mysql automatically adds the
UNSIGNED attribute to the column.
UNSIGNED, if specified, disallows negative values.
noone | Fri, 23 May 2008 14:20:00 GMT |
Thanks Noone,
Tried it out works fine
Thanks very much
and Best regards
notverybright | Fri, 23 May 2008 14:21:00 GMT |