If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > int column truncating start 0

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-19-04, 07:06
alexh alexh is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
int column truncating start 0

I have a users table that has a telephone number column, type Int. Each record that gets entered has the start 0 dropped. Can anyone explain?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-19-04, 15:20
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
If the telephone number column is numeric, the zeros are supposed to be dropped. You probably want to make it a character datatype.

-PatP
Reply With Quote
  #3 (permalink)  
Old 03-23-04, 05:53
alexh alexh is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
Thanks, I didn't realise that.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On