Jump to content

I am in phpmyadmin, making a table, what type should I use for 25,50,160 string?


physaux

Recommended Posts

VarChar would be correct type. If the string can go past 255, then text would probably be the preferred method.

 

VARCHAR length limit is 65,535 since MySQL 5.0.3

 

If your strings are ALWAYS of same length (like MD5 hashes) then use CHAR().

Link to comment
Share on other sites

VarChar would be correct type. If the string can go past 255, then text would probably be the preferred method.

 

VARCHAR length limit is 65,535 since MySQL 5.0.3

 

Wow, I am way behind the times...lol on my dev box I still run mysql 3.x :X granted I havnt really coded any projects for a while, I guess having the subquery feature in MySQL will be nice, time for  an upgrade I guess and to read up on MySQL 5.x

Link to comment
Share on other sites

am way behind the times...lol on my dev box I still run mysql 3.x :X granted I havnt really coded any projects for a while, I guess having the subquery feature in MySQL will be nice

 

Yeah... and triggers, views, scheduler, table partitioning, TIMESTAMP that has some sense, pluggable storage engines... :D

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.