ALTER proc [dbo].[read_news_id]--这个是正确可以用的
(
  @nid int=null,
  @ntype tinyint=null,
  @ntype2 tinyint=null  
)
as
select *
from fnews
where nid=ISNULL(@nid,nid) and ntype=ISNULL(@ntype,ntype) and ntype2=ISNULL(@ntype2,ntype2)
------------------------------------------------------------------------------------------------ALTER proc [dbo].[read_news_id]--这里添加ntitle后就不对了,请问错在哪里
(
  @nid int=null,
  @ntitle nvarchar=null,
  @ntype tinyint=null,
  @ntype2 tinyint=null  
)
as
select *
from fnews
where nid=ISNULL(@nid,nid) and ntitle=ISNULL(@ntitle,ntitle) and ntype=ISNULL(@ntype,ntype) and ntype2=ISNULL(@ntype2,ntype2)下面一个存储过程添加ntitle后就不对了,请问错在哪里?