我使用此存储过程来显示文档处于待处理状态
create procedure b
as
select
dbo.DocumentInfo.DocID, dbo.DocumentInfo.DocName,
dbo.DocumentInfo.Uploadfile, dbo.DocType.Doc Type,
dbo.Department.DepType, ApproveType.ApproveType
from
dbo.DocumentInfo
left join
dbo.DocType on dbo.DocumentInfo.DocTypeID = dbo.DocType.DocTypeID
left join
dbo.Department on dbo.DocumentInfo.DepID = dbo.Department.DepID
inner join
ApproveType on DocumentInfo.ApproveID = ApproveType.ApproveID
and (ApproveType.ApproveID = 3)
但是当我检查此查询时,它无法向我显示任何文件..
问题出在哪里?