My contemplations and diurnal novelties are publicized here


I tried different syntax to find out multi statement sp in mysql and a co-worker help me find this.

DELIMITER $$

CREATE PROCEDURE Mubashir
(
parameter1 VARCHAR(255),
parameter2 INTEGER
)
BEGIN
insert into accounttype(accounttype) select distinct AccountType from temptableforbulkimport;

SELECT * from temptableforbulkimport;
END$$

DELIMITER ;

Advertisements

Comments on: "Multi statement Stored Procedure in MySQL" (1)

  1. Thanks wahab for mentioning my efforts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: