Create and Execute mysql Stored Procedures
Syntax to create stored procedures
Example : Create a stored procedure to display number of buses for given source
Syntax to create stored procedures
mysql procedure
Consider database Bus Transportation System
BUS (BUS_NO INT , CAPACITY INT ,
DEPOT_NAME VARCHAR(20),ROUTE_NO INT FOREIGN KEY)
ROUTE (ROUTE_NO INT, SOURCE CHAR(20),
DESTINATION CHAR(20), NO_OF_STATIONS INT)
Example : Create a stored procedure to display number of buses for given source
mysql code to create above procedure
No comments:
Post a Comment