Jump to content

BIGINT vs Char


tsilenzio

Recommended Posts

What is better to use if you plan on having about 10 looong numbers per row per entry in a table and on average theres about anywhere from 800 - 3000 values changeing every couple of seconds. Would it be better for space and / or perfermance to use a BIGINT or a CHAR?

Link to comment
Share on other sites

If bigint is too small, you can use decimal/numeric.  All these types have maximum ranges, so you may still need to resort to varchar in extreme cases.  The manual clarifies everything (make sure to check for your version of mysql)

Link to comment
Share on other sites

If bigint is too small, you can use decimal/numeric.  All these types have maximum ranges, so you may still need to resort to varchar in extreme cases.  The manual clarifies everything (make sure to check for your version of mysql)

BIGINT is never too small... esp. unsigned, that's 8 billion.

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.