Results 1 to 2 of 2

Thread: How to insert new line in a query

  1. #1
    Join Date
    Jan 2007
    Posts
    1

    How to insert new line in a query

    Hi

    I have a table in which one of the columns is a varchar.
    I have to insert the following in the column :

    'Thanks,

    Yours,

    <name>'

    How do i get the new line characters in the insert query.

  2. #2
    Join Date
    Aug 2006
    Posts
    57
    on sql server, you would do something like this:

    insert into MyTable (mycol) values ('thank' + char(13) + char(10) + 'you')

Posting Permissions

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