DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Hard return in the insert statement

  1. #1
    Join Date
    Apr 2002
    Posts
    73

    Hard return in the insert statement

    How can I insert the data that contain the line breaks or hard return ?

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    via what mechanism?

  3. #3
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166

    Re: Hard return in the insert statement

    Originally posted by Blu
    How can I insert the data that contain the line breaks or hard return ?
    You can concatenate a CHR(10).

    Code:
    INSERT INTO blah ('blah blah blah blah blah blah ' || CHR(10) ||
                      'blah blah blah blah blah blah ' );

  4. #4
    Join Date
    Apr 2002
    Posts
    73
    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width