Update if Exist Else Insert if not exists

  • Good day to all the gurus in this forum,

    I'm really new in sql programming and have some difficulty generating what i want.

    i would like to know how to update an existing rows and specific column if exist but if not exist i need to insert that rows.

    would like to have your ideas...

  • If I understood your question correctly then MERGE statement should solve your problem. Please take a look at http://msdn.microsoft.com/en-us/library/bb510625.aspx

Viewing 2 posts - 1 through 1 (of 1 total)

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