Re: Why are data types size limited?

From: Philip Lijnzaad <lijnzaad_at_ebi.ac.uk>
Date: 2000/03/24
Message-ID: <u7hfdwadpr.fsf_at_o2-3.ebi.ac.uk>#1/1


On Thu, 23 Mar 2000 21:02:28 GMT,
"Mark" == Mark Preston <mark_at_mpreston.demon.co.uk> writes:

Mark> The simple truth is that strings - or any other field - *can* be Mark> variable length if you use a field delimiting character.

This, IMO, is a braindead solution; far more robust and faster if each field has an extra (and to the user invisible) attribute called length.

Mark> This is the
Mark> basis of the Pick (and Pick-like) variable-field database system and
Mark> you can use SQL with most of those.

So you probably can't store '\0', so you can't have variable length BLOBs ?

Mark> So, your answer is: you can use variable field sizes in SQL, but most
Mark> database implementations (such as Oracle, MySQL etc.) won't allow you
Mark> to do it.

What about the various VARCHAR and VARCHAR2 types ?
                                                                      Philip

-- 
Not getting what you want is sometimes a wonderful stroke of luck.
-----------------------------------------------------------------------------
Philip Lijnzaad, lijnzaad_at_ebi.ac.uk | European Bioinformatics Institute,rm A2-24

+44 (0)1223 49 4639 | Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax) | Cambridgeshire CB10 1SD, GREAT BRITAIN
PGP fingerprint: E1 03 BF 80 94 61 B6 FC 50 3D 1F 64 40 75 FB 53
Received on Fri Mar 24 2000 - 00:00:00 CET

Original text of this message