SQL Server Stored Procedure - How To

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 19

  • @jerrychan1471
    @jerrychan1471 หลายเดือนก่อน

    Very clear examples, thanks for the video! You provided the exact info what I was looking for!

    • @DatabaseStar
      @DatabaseStar  29 วันที่ผ่านมา

      Glad it was helpful!

  • @colourNika
    @colourNika ปีที่แล้ว +1

    thank you, simple explanation with straightforward examples ( I wish there were one advanced example)

  • @JohnsonAdebayo-y7b
    @JohnsonAdebayo-y7b ปีที่แล้ว

    Well done on this video, please I need your tutorial on how to use the Stored procedure for the validation of input parameters

    • @DatabaseStar
      @DatabaseStar  ปีที่แล้ว

      Thanks! You can use techniques such as if statements or case statements inside the stored procedures to validate the parameters

  • @Impergator-ld5gi
    @Impergator-ld5gi ปีที่แล้ว +1

    Good structured Video and informative content 💪

  • @ryandx-v9j
    @ryandx-v9j 5 หลายเดือนก่อน

    Concise, thanks :)

    • @DatabaseStar
      @DatabaseStar  5 หลายเดือนก่อน

      You’re welcome!

  • @mezomezo8718
    @mezomezo8718 ปีที่แล้ว

    Very well explained

  • @kimleng539
    @kimleng539 6 หลายเดือนก่อน

  • @anujamahagamage1316
    @anujamahagamage1316 4 หลายเดือนก่อน

    🥰🥰

  • @kvelez
    @kvelez 4 หลายเดือนก่อน

    CREATE PROCEDURE SelectCustomers
    AS
    SELECT *
    FROM Customer;
    =====
    CREATE PROCEDURE InsertCustomer
    @customer_name NVARCHAR (50), @customer_status INT=1
    AS
    INSERT INTO Customer
    VALUES (@customer_name, @customer_status);
    =====
    CREATE PROCEDURE UpdateCustomer
    @newName NVARCHAR (50), @newActive INT, @customerId INT
    AS
    UPDATE Customer
    SET Name = @newName,
    is_active = @newActive
    WHERE Id = @customerId;
    ====
    CREATE PROCEDURE DeleteCustomer
    @customerId INT
    AS
    DELETE Customer
    WHERE Id = @customerId;

    • @DatabaseStar
      @DatabaseStar  4 หลายเดือนก่อน +1

      Is there a question you have about this code?

    • @kvelez
      @kvelez 4 หลายเดือนก่อน

      @@DatabaseStar I wanted to share it with others so that they can use it.
      **But if you can do a followup on procedures, I would enjoy it.