0
をバインドすることができませんでしたこれは私のストアドプロシージャです:マルチパート識別子「ocl.id_Projectは」
ALTER procedure [dbo].[GetProjectDetails]
@id_Project varchar(50),
@Flag varchar(50)
as
set nocount on;
if @Flag='0'
begin
--distinct
select oci.id_Project, cm.Project_Name,
(select Project_Name from tp_Project_Master mc where mc.id_Project=oci.id_Project) as Project_Name, oci.Thumbnail_Image
from tp_Project_Master cm, tp_Project_images oci
where cm.id_Project=ocl.id_Project and oci.syncoperation<>'D' and oci.isdefault=1 order by oci.dateadded desc
end
しかし、私はこのエラーを取得しています:
Msg 4104, Level 16, State 1, Procedure GetProjectDetails, Line 13
The multi-part identifier "ocl.id_Project" could not be bound.
私はうまくできませんなぜこのエラーが出ているのですか?