The correct solution to port Orac database to DB2

Source: Internet
Author: User

This article mainly describes the correct solution to port the Orac database to DB2. To better express it, we use the instance method to better describe it. The following is a detailed description of the main content of the article. We hope you will have a better understanding of it after browsing.

Oracle SQL:

 
 
  1. select decode(t.organtypecode, ''D'', t.parent, ''S'', t.parent, t.id)  
  2. from A_ORGAN t  
  3. where t.parent = 35 
  4. DB2 SQL:  
  5. select case x.organtypecode  
  6. when ''D'' then  
  7. x.parent  
  8. when ''S'' then  
  9. x.parent  
  10. else  
  11. x.id  
  12. end  
  13. from a_Organ x  
  14. where x.parent = 35;  

The above content is an introduction to the Application Instances of the Oracle-to-DB2 migration solution. I hope you will have some gains.

 

The above content describes the application instances for migrating solutions from Oracle to DB2, hoping to help you in this regard.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.