日期:2014-05-16  浏览次数:20448 次

存储过程-根据新闻ID取出所有评论
<pre name="code" class="sql">SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:   阿康
-- Create date:   2010-01-01
-- Description:   根据新闻ID取出所有评论
-- =============================================
CREATE PROCEDURE Comment_SelectByNewsId
@newsid int
AS
BEGIN
select c.[content],c.createtime,c.userip from comment c
where c.newsid=@newsid
END
GO
</pre>
<p>?</p>