25.12.2014, 12:45
Quote:
Never store more than one value in a single column to begin with. On top of that, these variables you mention aren't even related to each other so it makes even less sense doing so.
|
Quote:
M4D: That is not only quite a poor specifier, but also wrong.
iLuXing: "p<,>e<fffffii>" will work correctly, even for the first version of your enum - contrary to popular belief, arrays inside enums are not true arrays and can be treated as a set of flat variables: pawn Код:
pawn Код:
Having said all that, Vince is right. This code is trying to poorly replicate the functionality of databases, which are already VERY good at storing multiple pieces of independent data. Don't second guess SQL! |
I think this method with sscanf is faster a little.
Should I store those in every single column ?