- CREATE PROCEDURE spTest
- @flag INT
- AS
- BEGIN
- IF @flag = 1
- -- Insert
- IF @flag = 2
- -- Update
- IF @flag = 3
- -- Delete
- END
Execute flag in sql
execute pro_name then??
help me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mohsin ArifRank #732 · 3.2K reputationPosted Apr 23, 2019, 2:35 AM EDT
Amit KumarRank #459 · 5.4K reputationPosted Apr 23, 2019, 2:33 AM EDT