Hi,

This is not ANSI standard SQL. \n is C style escaping, and not
supported by ANSI SQL. It is supported by MySQL when ANSI SQL mode is
disabled.

The preferred solution is to use a prepared statement:
update mytable set myfield=? where id=?;

Another solution is to use:
update mytable set myfield='first line
second line' where id=1;

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to