首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

存储过程-依据新闻ID取出所有评论

2012-07-26 
存储过程-根据新闻ID取出所有评论pre namecode classsqlSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIE

存储过程-根据新闻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>

热点排行