> > > Doesn't matter: "If you assign a value to a CHAR or VARCHAR 
> column that
> > > exceeds the column's maximum length, the value is truncated to fit."
> >
> > ok, so it isn't depending on "fixed length" as you first said, and the
> > reason for it is just the simple design of sql, right?
> 
> As I see it, the question is what should an SQL server do in this 
> case of a
> value being assigned to a CHAR (or VARCHAR) column that exceeds 
> the column's
> maximum length.

It should, of course, follow the SQL standard, which explicitly
states that the value should be truncated and a warning issued.

MySQL does both.

/ Carsten
--
Carsten H. Pedersen
keeper and maintainer of the bitbybit.dk MySQL FAQ
http://www.bitbybit.dk/mysqlfaq



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to