gpt4 book ai didi

sql-server - 声明标量变量存储过程

转载 作者:行者123 更新时间:2023-12-03 01:34:52 24 4
gpt4 key购买 nike

CREATE PROCEDURE Customer
( FName varchar(20),LName varchar(20),Birthdate datetime,Email Nvarchar(20),Houseno varchar(20),Street varchar(20),City varchar(20),Country varchar(20),Pincode int,Phno varchar(13),Mobile varchar(13),CustomerId varchar(20),Password varchar(20),ConfirmPassword varchar(20))

AS

Begin

Insert into Registration values
(@FName,@LName,@Birthdate,@Email,@Houseno,@Street,@City,@Country,
@Pincode,@Phno, @Mobile,@CustomerId,@Password,@ConfirmPassword)

End

保存时出现错误

Fname must be declare as Scalar variable

这段代码有什么问题吗?

最佳答案

您的参数声明缺少“@”符号。

create procedure Customer
@FName varchar(20),@LName varchar(20) .....

关于sql-server - 声明标量变量存储过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9584444/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com