Stefan Hinz, iConnect (Berlin) wrote:

Murthy,


how to insert only blank spaces into a field using insert query. Its

getting

trimmed off.

If you are using VARCHAR for this, you're right. It's a documented
behaviour of MySQL ("Values are not padded; instead, trailing spaces are
removed when values are stored. (This space removal differs from the
ANSI SQL specification.)"): http://www.mysql.com/doc/en/CHAR.html

BTW, why is this?

- Cs.



---------------------------------------------------------------------
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