<?php
include_once("../include/conn.php");
mysql_query("SET NAMES GBK");
$rs=mysql_query("call test(1,@y);");
$rs=mysql_query("select @y;");
$rows=mysql_fetch_row($rs); print_r($array);
?>mysql 存储过程DROP PROCEDURE `test`//
CREATE DEFINER=`root`@`localhost` PROCEDURE `test`(in num int,out countnum int)
begin
declare x int default 1;
set x=num;
select x;
select count(1) into countnum from change_monitor;
end
请问php 怎么调到 out 参数?能详细解答一下嘛。。谢谢
include_once("../include/conn.php");
mysql_query("SET NAMES GBK");
$rs=mysql_query("call test(1,@y);");
$rs=mysql_query("select @y;");
$rows=mysql_fetch_row($rs); print_r($array);
?>mysql 存储过程DROP PROCEDURE `test`//
CREATE DEFINER=`root`@`localhost` PROCEDURE `test`(in num int,out countnum int)
begin
declare x int default 1;
set x=num;
select x;
select count(1) into countnum from change_monitor;
end
请问php 怎么调到 out 参数?能详细解答一下嘛。。谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货