Inserting Value problem

  • Hi,

    How can I insert the following variable using

    Insert Into ...

    Values....

    the value is --> 2','3','4 <--- Exactly as it is here!! I just cant figure out a way to get it to recognise it as a single variable. Many thanks

  • 1 way is to SET QUOTED_IDENTIFIER OFF

    and then you can use double quotes for string variables.

    Example; "2','3','4"


    Kindest Regards,

  • Thank you, that worked!

  • One more way is to replace all single instance of "'" with "''" using replace function.

  • You can also insert:

    '2'',''3'',''4'

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply