【PHP代码】
代码如下:
$stmt = mssql_init('P__Global_Test',$conn) or die("initialize stored procedure failure");
mssql_bind($stmt,"RETVAL",$returnValue,sqlINT4,true);
mssql_execute($stmt,false);
if( $returnValue == 0 ){
echo 'ABCD';
}
else{
mssql_bind($stmt,"RETVAL",$returnValue,sqlINT4,true);
mssql_execute($stmt,false);
if( $returnValue == 0 ){
echo 'ABCD';
}
else{
PHP name="code"> echo 'EFGH';}
【存储过程】
代码如下:
40346">
CREATE PROCEDURE dbo.P__User_JudgeResume(
)
set nocount on
set @Message = ''if not exists( select * from _Test )
begin
return 0
end
else
begin
return 1
end
set nocount off
GO
CREATE PROCEDURE dbo.P__User_JudgeResume(
)
set nocount on
set @Message = ''if not exists( select * from _Test )
begin
return 0
end
else
begin
return 1
end
set nocount off
GO
原文链接:https://www.f2er.com/php/25864.html