How would this stored procedure look like in MySQL? :
=========================================================================
Create PROCEDURE [dbo].[Customer_Insert]
(
@CustomerID int = NULL OUTPUT,
@CustomerRef varchar(25),
@Name varchar(64) = NULL,
)
AS
SET NOCOUNT ON
INSERT INTO [Customers]
(
[CustomerRef],
[Name]
)
VALUES
(
@CustomerRef,
@Name
)
SELECT @CustomerID = SCOPE_IDENTITY();