根据内容取出新闻的内容

CREATE PROCEDURE Selectbycontent
@content varchar(100)
AS
BEGIN
select c.id,[name],title,createtime,caid from news n join category c on n.caid=c.id
where n.content like
'%'+@content+'%'
order by createtime desc
END
GO

你可能感兴趣的:(C++,c,C#,Go)