<strong>【PHP代码】<br></strong><div class="codetitle"> <span><a style="CURSOR: pointer" data="90215" class="copybut" id="copybut90215" onclick="doCopy('code90215')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code90215"> <br> $stmt = mssql_init('P__Global_Test', $conn) or die("initialize stored procedure failure");<br> mssql_bind($stmt, "RETVAL", $returnValue, SQLINT4, true);<br> mssql_execute($stmt, false);<br> if( $returnValue == 0 ){<br> echo 'ABCD';<br> }<br> else{ <PRE class=php name="code"> echo 'EFGH';</PRE> } <br> </div> <br><strong>【存储过程】<br></strong><div class="codetitle"> <span><a style="CURSOR: pointer" data="81929" class="copybut" id="copybut81929" onclick="doCopy('code81929')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code81929"> <br>CREATE PROCEDURE dbo.P__User_JudgeResume(<br>)<br>set nocount on<br> set @Message = ''<br><br> if not exists( select * from _Test )<br> begin<br> return 0<br> end <br> else<br> begin<br> return 1<br> end <br>set nocount off<br>GO<br> </div> <br>