Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
What is the "Length/Values" field in phpmyadmin?
Old 03-21-2011, 06:23 PM What is the "Length/Values" field in phpmyadmin?
Super Talker

Posts: 113
Trades: 0
I'm trying to create a table in a mySQL table using phpmyadmin, but am really confused.

What is the Length/Values field? If I have a data type of INT, and I put the number "2" in the Length/Values field, does that mean:

Case 1: The maximum number that can be in that column is 2 (e.g. it can be 0,1,2).

Case 2: The number can have to characters (e.g. it can be 0-99)

Case 3: This is a power of two, 2^2 = 4 and that is the highest number that can be in the table.

Obviously I am totally confused and no matter how many websites I read I can't seem to understand this field.

I would appreciate any clarification you might be able to give!!
Learnin' n00b is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-21-2011, 06:27 PM Re: What is the "Length/Values" field in phpmyadmin?
Super Spam Talker

Posts: 880
Name: Paul W
Trades: 0
http://php.about.com/od/learnmysql/ss/create_tables.htm step by step tutorial.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 03-21-2011, 06:46 PM Re: What is the "Length/Values" field in phpmyadmin?
Super Talker

Posts: 113
Trades: 0
In that tutorial, the author does not define a size for the integer field. Is that correct?

So, numbers don't need to be assigned sizes, but when the type is VARCHAR then the length/values field sets the maximum number of characters?
Learnin' n00b is offline
Reply With Quote
View Public Profile
 
Old 03-21-2011, 08:55 PM Re: What is the "Length/Values" field in phpmyadmin?
Super Spam Talker

Posts: 880
Name: Paul W
Trades: 0
Correct
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to What is the "Length/Values" field in phpmyadmin?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.63763 seconds with 12 queries