CREATE PROCEDURE NAMES AS
NAME VARCHAR (20),
REGNO VARCHAR(100),
BEGIN
SELECT NAME=@NAME FROM STUDENTDETAIL
SELECT REGNO=@REGNO FROM STUDENTDETAIL
END
このストアドプロシージャが作成されないのはなぜですか?
CREATE PROCEDURE NAMES AS
NAME VARCHAR (20),
REGNO VARCHAR(100),
BEGIN
SELECT NAME=@NAME FROM STUDENTDETAIL
SELECT REGNO=@REGNO FROM STUDENTDETAIL
END
このストアドプロシージャが作成されないのはなぜですか?
君
SQLServer2008で
CREATE PROCEDURE NAMES
(
NAME VARCHAR (20),
REGNO VARCHAR(100)
)
AS
SELECT * FROM STUDENTDETAIL WHERE NAME=@NAME AND REGN=@REGNO;
GO
MySQLでは
mysql> delimiter //
mysql> CREATE PROCEDURE NAMES (NAME VARCHAR (20), REGNO VARCHAR(100))
-> BEGIN
-> SELECT * FROM STUDENTDETAIL WHERE NAME=@NAME AND REGN=@REGNO;
-> END//