Re: [nyphp-talk] TRUNCATING MySQL FIELDS

2007-07-30 Thread Mark Armendariz
On 7/28/07, PaulCheung <[EMAIL PROTECTED]> wrote: > When I set the table up I set the LICENCE to INT(8). When populating this > field I was expecting any number larger than 8 digits to be truncated and > any number less than 8 digits to be padded out with zeros, in both cases > this is not happeni

Re: [nyphp-talk] TRUNCATING MySQL FIELDS

2007-07-29 Thread tedd
On July 28, 2007, PaulCheung wrote: When I set the table up I set the LICENCE to INT(8). When populating this field I was expecting any number larger than 8 digits to be truncated and any number less than 8 digits to be padded out with zeros, in both cases > this is not happening. Random

Re: [nyphp-talk] TRUNCATING MySQL FIELDS

2007-07-29 Thread PaulCheung
Hi Mike, Thank you for pointing me in the right direction. My problem was mis-understanding what INT(8) meant. Paul - Original Message - From: "Michael Sims" <[EMAIL PROTECTED]>; To: "NYPHP Talk" Sent: Saturday, July 28, 2007 7:36 PM Subject: Re: [ny

Re: [nyphp-talk] TRUNCATING MySQL FIELDS

2007-07-28 Thread Michael Sims
On July 28, 2007, PaulCheung wrote: > When I set the table up I set the LICENCE to INT(8). When populating this > field I was expecting any number larger than 8 digits to be truncated and > any number less than 8 digits to be padded out with zeros, in both cases > this is not happening. Nope. An

Re: [nyphp-talk] TRUNCATING MySQL FIELDS

2007-07-28 Thread David Krings
PaulCheung wrote: I created a MySQL database with tables. In one of the tables, the Customer Name& Address table, I use as the PRIMARY KEY a numeric field that I call LICENCE which is a number generated through a random number generator. When I set the table up I set the LICENCE to INT(8). Wh

[nyphp-talk] TRUNCATING MySQL FIELDS

2007-07-28 Thread PaulCheung
I created a MySQL database with tables. In one of the tables, the Customer Name& Address table, I use as the PRIMARY KEY a numeric field that I call LICENCE which is a number generated through a random number generator. When I set the table up I set the LICENCE to INT(8). When populating this