What is the difference between CALL and EXEC in T-SQL?

前端 未结 3 646
忘掉有多难
忘掉有多难 2021-02-18 22:18

Consider:

CREATE PROCEDURE LowerCityDiscounts @city VARCHAR(45), @decrease DECIMAL(10,2) AS
BEGIN
    BEGIN TRANSACTION;
    UPDATE Customers SET discnt = discnt         


        
3条回答
  •  [愿得一人]
    2021-02-18 22:32

    Yup.. CALL is an construct/syntax usable from an ODBC driver, as your documentation indicates.

    There's no reference in the T-SQL documentation to CALL, only EXEC.

    It doesn't work because it's not T-SQL.

提交回复
热议问题