Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. sql stored procedure

sql stored procedure

Scheduled Pinned Locked Moved Database
databasetutorialannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harithadotnet
    wrote on last edited by
    #1

    HI How to use insert and update query in a single stored procedure if u know plz let me know too Thanks in advance

    Haritha

    K N 2 Replies Last reply
    0
    • H harithadotnet

      HI How to use insert and update query in a single stored procedure if u know plz let me know too Thanks in advance

      Haritha

      K Offline
      K Offline
      Krish KP
      wrote on last edited by
      #2

      what exactly you are looking for procedure can be created with both insert & update statements one after other.

      Regards KP

      1 Reply Last reply
      0
      • H harithadotnet

        HI How to use insert and update query in a single stored procedure if u know plz let me know too Thanks in advance

        Haritha

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Hi You can write any queries in stored procedures. Your procedure could be some thing like this

        CREATE PROCEDURE InsertUpdateProcedure
        AS

        INSERT INTO TABLE VALUES(VALUE)

        UPDATE TABLE SET COLUMN = VALUE WHERE CONDITION

        GO

        First insertion will be done and after that updation Happy Programming


        My Website | Ask smart questions

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups