Re: Recording an ISO-639-1 language code
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Jun 2007 20:04:46 GMT
On Sun, 24 Jun 2007 20:32:27 GMT, Haggis McMutton
<haggis@xxxxxxxxxxxxx> wrote, quoted or indirectly quoted someone who
said :
There would obviously be need for a function that converts between the
two, is it better to do this or just record it as a string?
You can store it in one byte as an int, or 32 bits as a fixed length
character pair, even longer for a string since you need a length.
It really depends on how many of these you have. If you have a
database of millions of records it might be worth sweating over. Most
likely there are tens of thousands of things more deserving of such
detailed attention.
Consider that you can't do much interesting with ad-hoc SQL queries in
int form.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- Follow-Ups:
- Re: Recording an ISO-639-1 language code
- From: Lew
- Re: Recording an ISO-639-1 language code
- References:
- Recording an ISO-639-1 language code
- From: Haggis McMutton
- Recording an ISO-639-1 language code
- Prev by Date: Re: how does windows find java.exe?
- Next by Date: Newbie: -classpath option of java does not load the content of the jar file
- Previous by thread: Re: Recording an ISO-639-1 language code
- Next by thread: Re: Recording an ISO-639-1 language code
- Index(es):
Relevant Pages
|
|