non-floating point 12-digit datatype?
From my own experience working with databases, barcodes and retail/tracking, use a string. As mentioned, a barcode is a set of characters (that happen to be [0-9] 99% of the time). Storing it as a number (and you're not even getting a great spacing savings, 8 bytes vs 12 bytes) is a good way to make your code break in the future.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement