Get the App
SLTechnology News&Howtos  ›  Database  › 

Stored procedure definition syntax

Shulou Source: shulou.com Published: 2022-06-01 07:45:44 10月03日 Update

CREATE PROCEDURE `addTicket` (in vipsql VARCHAR, in ordersql VARCHAR, in detailkey varchar, in detailsql VARCHAR) comment 'pending order (Drug Sale window)'

BEGIN

DECLARE CONTINUE HANDLER FOR SQLEXCEPTION, NOT FOUND

Rollback

Start transaction

Set @ vid=@oid=''

Set @ outstr=''

Set @ errcode=200

Set @ errmsg=' succeeded'

If vipsql=0 then

Set @ tem=vipsql

Prepare tem from @ tem

Execute tem

Set @ rows=row_count ()

If @ rows

Tags: Orders successes members details syntax procedures storage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Huawei Shulou Tech Info NVidia MySQL