我有列的表
1_number varchar(50),
name_surname varchar(150),
myID int,
2_number varchar(50)
有存储过程,我想在其中插入值
@1_number varchar(50),
@name_surname varchar(150),
@myID int,
@2_number varchar(50)
AS
BEGIN
SET NOCOUNT ON;
if not exists(SELECT * FROM myData WHERE 2_number= @2_number)
INSERT INTO myData(1_number,name_surname,myID,2_number)
values (@1_number,@name_surname,@myID,@2_number)
但是有一个错误:列名“myID”无效。我的表中已经有此列