Sql server 2008 SQL Server中的参数化存储过程-错误“;列名称不明确';musictypeID'&引用;
我一直在处理SQL Server中的参数化存储过程,但遇到一个错误 列名称“musictypeID”不明确 代码:Sql server 2008 SQL Server中的参数化存储过程-错误“;列名称不明确';musictypeID'&引用;,sql-server-2008,Sql Server 2008,我一直在处理SQL Server中的参数化存储过程,但遇到一个错误 列名称“musictypeID”不明确 代码: 两个表都有musictypeID,因此需要在where子句中指定一个 将where musictypeID=@musictypeID更改为where musicc.musictypeID=@musictypeID两个表都有musictypeID,因此需要在where子句中指定一个 将其中musictypeID=@musictypeID更改为其中musicc.musictypeID=
两个表都有
musictypeID
,因此需要在where
子句中指定一个
将
where musictypeID=@musictypeID
更改为where musicc.musictypeID=@musictypeID
两个表都有musictypeID
,因此需要在where
子句中指定一个
将其中musictypeID=@musictypeID
更改为其中musicc.musictypeID=@musictypeID
create procedure getmusicbytype
(@musictypeID int)
as
begin
select *
from musicc
inner join MusicType on musicc.musictypeID = MusicType.musictypeID
where musictypeID = @musictypeID
end