mysql中存储过程的例子:
CREATE PROCEDURE addvoucher (
IN userid INT,
IN voucherid INT,
OUT result INT
)
BEGIN
SELECT
@endate_a := endate ,@batch_a := batch ,@c_count_a := c_count,
@isdead_a := isdead
FROM
t_voucher
WHERE
id = voucherid
mysql存储过程返回update行数是:1. 获取上条插入数据 LAST_INSERT_ID()
2. 获取update影响行数. ROW_COUNT()mysql>UPDATE t ->SET address = 'be ...
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)