Jump to content

[SOLVED] What Data Type for field contains number in millions


samona

Recommended Posts

Good Morning all,

 

What type would I use for a field if I want to store numbers that can go up to a number in the millions?

 

If it is just millions, you can still use the INTEGER data type. By default, it stores up to 2,147,483,647 or 4,294,967,295 if you declare it as unsigned. If, for some reason, you end up getting above the 4 billion mark and still need to do calculations on it, you can use the BIGINT type.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.