Results 1 to 2 of 2

Thread: How do i insert ampersand(&) in a string while insert

  1. #1
    Join Date
    Sep 2006
    Posts
    21

    How do i insert ampersand(&) in a string while insert

    Hi,
    I am trying to insert a string which is having ampersand in it,how do i escape &.

    Ex: I have a table with a column saying status varchar2(30).

    Now, i want to insert a string like thick & thin in that column.

    INSERT INTO DUMMYTABLE VALUES('thick & thin');

    It is prompting for thin when i gave like above..

    Please help me regarding this.

    Thanks and Regards,
    Hafeez.

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Use escape character in ms sql server, check books online for details.

Posting Permissions

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