• 2022-06-07
    创建存储过程如下:
    Create
    procedure bookproc
    @id
    int, @title char(20) output
    As
    Select
    @title=title from book where id=@id
    执行该存储过程的方法正确的是()。
    A: exec bookproc 1, @title output
    print
    @title
    B: exec bookproc @id=1, @title output
    print
    @title
    C: declare @title char(20)
    exec
    bookproc 1, @title output
    print
    @title
    D: declare @title char(20)
    exec
    bookproc @id=1, @title output
    print
    @title