Jump to content

[SOLVED] Field Types


jaymc

Recommended Posts

I've been reading up on field types and am just wondering the effect it will have in regards to performance

 

For instance, if I have an integrar field which will only have a number as high as 45 the following field types apply

 

int

tinyint

mediumint

smallint

 

tinyint would be the best to use as it caters for numbers from -127 - 127

 

How would I benifit from setting my field to tinyint as apposed to being lazy and careless and just using int

 

Im just wondering whether its worth tralling through my tables and making the field types better in relation to the data thats going to be stored

 

feedback would be great

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.