急求助Sqlserver存错过程
CREATE PROCEDURE [dbo].[getNews]
@News_subject nvarchar(1000) =null,
@News_content nvarchar(max) =null,
@type int,
@FileName varchar(255) =null,
@descriptions nvarchar(1000) =null,
@News_sources nvarchar(1000) =null,
@News_clicks int,
@News_author nvarchar(1000) =null,
@News_addtime datetime,
@show int,
@Thumbnail varchar(255) =null,
@width int,
@height int,
@titleColor varchar(255) =null,
@keywords nvarchar(1000) =null,
@News_ID int
AS
set nocount on
begin
If @News_ID is Null Return
Select @News_subject=News_subject,@News_content=News_content,@type=type,@FileName=Filename,@descriptions=description,@News_sources=News_Sources,@News_clicks=News_clicks,@News_author=News_author,@News_addtime=News_addtime,@show=show,@Thumbnail=Thumbnail,@width=width,@height=height,@titleColor=titleColor,@keywords=keywords from News where @News_ID=News_ID
return
end
go
数据库中 news_content 是text类型 News_ID为int主键自动增长 当保存存储过程的时候他要我声明news_content和New_id 求租这是为什么
没有错误啊
不会吧 错误170:第三行 “max”附近语法错误
必须声明变量@News_ID
必须声明变量@News_content
我的F5快按坏了 求助啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
SQL code
{{----
相关问答:
我的数据库是简体sqlserver2000 ,我想在繁体access下连接,通过odbc是可以了,但在access下出现打开的表全中"#已删除"
不知道要怎么操作才可以用ACCESS繁体连接简体sqlserver2000.谢谢!!!
大家都 ......
在SqlServer中如何查看历史上执行的存储过程的信息呢,如:传入参数,执行时间等等。如果不能查看历史记录,是否可以自己写触发器之类的,人工控制呢,在Oracle里面有动态视图可以随时查看历史执行的sql语句,SqlSer ......
先由如下sql语句
select A,B,C from table1
union
select A,B,C from table2
order by A, C asc
得到结果如下:
A B &nbs ......
比如sql语句是:
SQL code:
select top 300
CA01.A_id as '变动次数',
CA01.A0188 as '人员id',
CA01.apname as '审批者',
CA01.CA0100 as '确认状态',
CA01.CA0101 as '变动类型',
CA01.CA0102 as '申 ......
sqlserver存储过程改oracle
谁会啊。。。帮忙改改··
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
ALTER PROCEDURE tp_Fetch_List(
  ......