dbTalk Databases Forums  

mysql column type

comp.databases.mysql comp.databases.mysql


Discuss mysql column type in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
john
 
Posts: n/a

Default mysql column type - 12-02-2011 , 07:53 PM






hi,guys. I want ask a question, if i set a column type int(64), can
it insert into a 64 bits number ? thanks

Reply With Quote
  #2  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: mysql column type - 12-02-2011 , 10:13 PM






john wrote:
Quote:
hi,guys. I want ask a question, if i set a column type int(64), can
it insert into a 64 bits number ? thanks
http://dev.mysql.com/doc/refman/5.1/...ger-types.html

tells you want you need to know.

INT is a 64 bit entity.

Reply With Quote
  #3  
Old   
john
 
Posts: n/a

Default Re: mysql column type - 12-03-2011 , 03:09 AM



On 12月3日, 下午3时29分, Michael Vilain <vil... (AT) NOspamcop (DOT) net> wrote:
Quote:
In article
b5e450c9-2f4f-45c4-b189-43a571766... (AT) q30g2000yqj (DOT) googlegroups.com>,

john <linxiuzhang2... (AT) gmail (DOT) com> wrote:
hi,guys. I want ask a question, if i set a column type int(64), can
it insert into a 64 bits number ? thanks

I don't think you have the ability to specify the 'type' used to store a
number through SQL. I think that's an implementation of the database.
This says to use BIGINT rather than INT:

http://dev.mysql.com/doc/refman/4.1/...ric-types.html

--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

thanks for telling me . i see somebody set a column type is int(64) , i don not understand what is the meaning, does int max length is 11 ?

Reply With Quote
  #4  
Old   
john
 
Posts: n/a

Default Re: mysql column type - 12-03-2011 , 03:11 AM



On 12鏈3鏃, 涓嬪崍12鏃13鍒, The Natural Philosopher <t... (AT) invalid (DOT) invalid>
wrote:
Quote:
john wrote:
* *hi,guys. I want ask a question, if i set a column type int(64), can
it insert into a 64 bits number ? thanks

http://dev.mysql.com/doc/refman/5.1/...ger-types.html

tells you want you need to know.

INT is a 64 bit entity.

i want to khow what 64 is meaning ?

Reply With Quote
  #5  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: mysql column type - 12-03-2011 , 04:59 AM



john wrote:
Quote:
On 12鏈3鏃, 涓嬪崍12鏃13鍒, The Natural Philosopher <t... (AT) invalid (DOT) invalid
wrote:
john wrote:
hi,guys. I want ask a question, if i set a column type int(64), can
it insert into a 64 bits number ? thanks
http://dev.mysql.com/doc/refman/5.1/...ger-types.html

tells you want you need to know.

INT is a 64 bit entity.

i want to khow what 64 is meaning ?
Its one less than 65?

Reply With Quote
  #6  
Old   
Tony Mountifield
 
Posts: n/a

Default Re: mysql column type - 12-03-2011 , 05:16 AM



In article <daf4cd68-63c4-4b65-8f4a-e7570f8537c9 (AT) h3g2000yqa (DOT) googlegroups.com>,
john <linxiuzhang2008 (AT) gmail (DOT) com> wrote:
Quote:
On 12月3日, 下午3时29分, Michael Vilain <vil... (AT) NOspamcop (DOT) net> wrote:
In article
b5e450c9-2f4f-45c4-b189-43a571766... (AT) q30g2000yqj (DOT) googlegroups.com>,

john <linxiuzhang2... (AT) gmail (DOT) com> wrote:
hi,guys. I want ask a question, if i set a column type int(64), can
it insert into a 64 bits number ? thanks

I don't think you have the ability to specify the 'type' used to store a
number through SQL. I think that's an implementation of the database.
This says to use BIGINT rather than INT:

http://dev.mysql.com/doc/refman/4.1/...ric-types.html

thanks for telling me . i see somebody set a column type is int(64) , i don not understand
what is the meaning, does int max length is 11 ?
http://dev.mysql.com/doc/refman/5.0/...ttributes.html
tells you all about that. The number after the data type is just a field
width, and doesn't affect the size of the data storage.

You will often find that reading the online documentation give you an
answer more quickly than waiting for a reply on a newsgroup!
The investment in time is well worth it...

Cheers
Tony
--
Tony Mountifield
Work: tony (AT) softins (DOT) co.uk - http://www.softins.co.uk
Play: tony (AT) mountifield (DOT) org - http://tony.mountifield.org

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.