Is it OK to have actual newline/carriage return characters in string data?

E.g. consider the insert statement
INSERT into table t1 ( ) VALUES('Here is a newline:\nThere it was!');

Now consider the statement, typed as
INSERT into table t1 ( ) VALUES('Here is a newline:
There it was!');

Is the second version legal?

Another way of saying this (I guess) is:  what kinds of characters are
allowed in a string constant?


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to