Re: Why are data types size limited?
Date: 2000/04/12
Message-ID: <38F4C6AF.CE1C818B_at_ieee.org>#1/1
joe_celko_at_my-deja.com wrote:
>
> >> From an ignorant-user standpoint, they {SQL databases} are great
> except for field size limitations ... Why is this? Why can't databases
> be written to handle arbitrarily long strings, and grow or shrink all
> input fields as needed? <<
>
> That is actually a good question. When we were doing the SQL-86 and
> SQL-89 standards, we knew that SQL really stands for "Scarely Qualifies
> as a Language" -- a little ANSI humor.
>
> The specs do not talk about internal representation of data types in
> the SQL database, only scale and precision, character sets, and other
> abstract things. The reason is that you never directly see SQL data!!
> The database exists in one place, the host program exists in another
> place and the SQL engine passes data back and forth between them,
> converting datatypes on the fly. This is why 'C' and Cobol can use the
> same database.
>
> The datatypes we picked were the most universal, easiest to map to host
> programming languages we could imagine.
>
> --CELKO--
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.