The amount of data can be in megabytes, gigabytes, terabytes. Which is better to choose the type of data?

Closed due to the fact that the issue is too general for the participants user194374, Mike , ߊߚߤߘ , rjhdby , Akina 12 Feb '17 at 17:59 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    It is better to store in bytes. For MySql, the maximum number 18446744073709551615 can be stored in BIGINT UNSIGNED . If this is not enough, then you can store the size as a string.

    • one
      Then type BIGINT (it seems to me that the vehicle is just interested in what specifically to write - INT, DOUBLE or something else ...) - avp
    • @avp thanks. added to the answer. - Mikhail Vaysman