If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Migration from Oracle to MySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-05, 05:34
ramcha ramcha is offline
Registered User
 
Join Date: Oct 2004
Posts: 14
Question Migration from Oracle to MySQL

Hi Friends,

I'm working on a migration project from Oracle to MySQL. We have lot of procedures in Oracle that needs to be converted to MySQL. I would like to know the equivalent of Oracle's "EXCEPTION when {exception} then ....." in MySQL.

For example, I would like to know whether the SQL Statement i'm firing within the procedure returns row or not - if no rows is returned then do logic a else do logic b

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 12-06-05, 12:48
expert-db expert-db is offline
Registered User
 
Join Date: Mar 2004
Posts: 33
Hi,

Check SwisSQL.
http://www.swissql.com

Regards,
Reply With Quote
  #3 (permalink)  
Old 12-07-05, 01:41
ramcha ramcha is offline
Registered User
 
Join Date: Oct 2004
Posts: 14
Cool

Thanks expert_db.

I used the HANDLERs for the above requirement. It works perfectly fine.

DECLARE EXIT HANDLER FOR NOT FOUND
begin
// Your logic for not found to be inserted here
end;
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On