标题: PHP网页设计PHP 挪用MSSQL存储进程 [打印本页] 作者: 乐观 时间: 2015-2-4 00:14 标题: PHP网页设计PHP 挪用MSSQL存储进程 总的来说,在这一个月左右的时间中,学到的不少,但是也遇到不少的问题,比如批量图片的上传,一直到现在也不懂,如何实现动态的增加上传图片的数量。存储进程 存储进程以下:
CREATE PROCEDURE test
@TableName char(20),
@ii char(20) output,
@bb char(20) output
AS
set nocount on
/*
if exists (select 1 from demo_table where t_name=@TableName)
set @ii = 'yes'
else
begin
--RAISERROR('not have such a table',16,1)
set @ii = 'no'
end
*/
select @ii = t_id from demo_table where t_name = @TableName
if @ii is null
begin
set @ii = 'no'
set @bb = 'hello'
end
else
set @bb = 'HAHAHAHAHQAH'
select @ii as ii,@bb as bb
GO