View Single Post
  #1  
Old 11-23-2006, 04:55 AM
Wumchi Wumchi is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Wumchi is on a distinguished road
Default stored procedure creating problem?

Hi folks,
I found a problem with a stored procedure, crashing the MySQL broswer.
The stored procedure looks as:

DELIMITER $$

DROP PROCEDURE IF EXISTS `tc`.`GTH` $$
CREATE PROCEDURE `GTH`(IN origID INT)
BEGIN

// create and fill a table called tempT
CREATE TEABLE tempT...

//perform a SELECT statement using tempT, let the returnset be returned
SELECT *
FROM A a, B b, tempT tt
WHERE a.ID = b.ID
AND a.ID = tt.id;

END $$
DELIMITER ;

So, what might be the problem?
Thanks in advance!! -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - stored procedure creating problem?
View Single Post
  #1  
Old 11-23-2006, 04:55 AM
Wumchi Wumchi is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Wumchi is on a distinguished road
Default stored procedure creating problem?

Hi folks,
I found a problem with a stored procedure, crashing the MySQL broswer.
The stored procedure looks as:

DELIMITER $$

DROP PROCEDURE IF EXISTS `tc`.`GTH` $$
CREATE PROCEDURE `GTH`(IN origID INT)
BEGIN

// create and fill a table called tempT
CREATE TEABLE tempT...

//perform a SELECT statement using tempT, let the returnset be returned
SELECT *
FROM A a, B b, tempT tt
WHERE a.ID = b.ID
AND a.ID = tt.id;

END $$
DELIMITER ;

So, what might be the problem?
Thanks in advance!! -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote