Re: storing large integers properly

2003-08-14 Thread Eben Goodman
yes, some do end in 'x' as I just discovered. Thanks to everyone for the input, I have decided to convert to varchar and re-index. Keith C. Ivey wrote: On 5 Aug 2003 at 9:49, Eben Goodman wrote: The data type of the field I am storing this info in is a bigint(16) unsigned. It appears tha

RE: storing large integers properly

2003-08-14 Thread Kevin Gale
Eben. Yes, use a character based data type as the leading zero's are insignificant and will be removed. HTH Kev. > -- > From: Eben Goodman > Sent: Tuesday, August 5, 2003 14:49 PM > To: [EMAIL PROTECTED] > Subject: storing large integers proper

Re: storing large integers properly

2003-08-10 Thread Yves Goergen
t; Gesendet: Dienstag, 5. August 2003 15:49 Betreff: storing large integers properly > I am storing book isbn numbers in a table. isbn numbers are 10 digit > numbers and many start with 0. The data type of the field I am storing > this info in is a bigint(16) unsigned. It appears tha

Re: storing large integers properly

2003-08-07 Thread Cybot
Eben Goodman wrote: I am storing book isbn numbers in a table. isbn numbers are 10 digit numbers and many start with 0. The data type of the field I am storing this info in is a bigint(16) unsigned. It appears that isbns that start with 0 are going in as 9 digit numbers, the 0 is being ignor

Re: storing large integers properly

2003-08-06 Thread Keith C. Ivey
On 5 Aug 2003 at 9:49, Eben Goodman wrote: > The data type of the field I am > storing this info in is a bigint(16) unsigned. It appears that isbns > that start with 0 are going in as 9 digit numbers, the 0 is being > ignored or stripped. I have experienced this before with integer data > types

Re: storing large integers properly

2003-08-05 Thread Roger Baklund
* Eben Goodman > I am storing book isbn numbers in a table. isbn numbers are 10 digit > numbers and many start with 0. The data type of the field I am storing > this info in is a bigint(16) unsigned. Why not use "BIGINT(10) UNSIGNED ZEROFILL"? > It appears that isbns that start > with 0 are goi

storing large integers properly

2003-08-05 Thread Eben Goodman
I am storing book isbn numbers in a table. isbn numbers are 10 digit numbers and many start with 0. The data type of the field I am storing this info in is a bigint(16) unsigned. It appears that isbns that start with 0 are going in as 9 digit numbers, the 0 is being ignored or stripped. I h

Re: storing large integers properly

2003-08-05 Thread gerald_clark
How about BIGINT(10) ZEROFILL ? Eben Goodman wrote: I am storing book isbn numbers in a table. isbn numbers are 10 digit numbers and many start with 0. The data type of the field I am storing this info in is a bigint(16) unsigned. It appears that isbns that start with 0 are going in as 9 di