How does one perform the (+) connection in the Oracle database?

Source: Internet
Author: User

This article mainly introduces you to the actual operations of the (+) connection in the Oracle database. This article describes the actual operations using the relevant code, if you are a crazy group of (+) connections in Oracle databases, do not miss the following articles.

1. Slave Table A. A1 +) = Master Table B. B1

Copy code SELECT

 
 
  1. TO_CHAR(TBA.FBS_IO_DATE,'YYYY/MM/DD') A1  
  2. ,TBA.TBA_TBD_NO A2  
  3. ,TBB.TBB_NAME_S A3  
  4. ,TBC.TBC_CHAR1 A4  
  5. ,TBD.TBD_NAME A5  
  6. ,TBA.TBA_SNS_NAME_SP A6  
  7. ,TBA.TBA_TORI_KIN A7  
  8. ,TO_CHAR(TBA.TBA_RPL_DATE,'YYYY/MM/DD') A8  
  9. FROM  
  10. SNTBATRN TBA  
  11. ,ZMTBCMST TBC  
  12. ,CMTBBMST TBB  
  13. ,CMTBDMST TBD  
  14. WHERE  
  15. TBA.TBA_KAI_CODE = 'XXX' 
  16. AND TBA.TBA_KESHI_KBN = '0' 
  17. AND TBA.TBA_TAISYO_KBN IN ('0', '2')  
  18. AND TBB_KAI_CODE (+) = 'XXX'  
  19. AND TBB_BUN_CODE (+) = 'S001'  
  20. AND TBB_START_DATE <= SYSDATE  
  21. AND TBB_END_DATE >= SYSDATE  
  22. AND TBB.TBB_CODE (+)= TBA.TBA_STN_CODE  
  23. AND TBC.TBC_KAI_CODE (+) = 'XXX'  
  24. AND TBC.TBC_SUB_KBN (+) = 'SN'  
  25. AND TBD.TBD_KAI_CODE (+) = 'XXX'  
  26. AND TBD.TBD_CODE (+) = TBA.TBA_SNS_CODE   

2. Master Table A. A1 = slave Table B. B1 +)

 
 
  1. Copy code
  2. SELECT
  3. Guid. TBA_1,
  4. TBB. TBB_1,
  5. TBC. TBC_1
  6. FROM
  7. Guid,
  8. (Select tbb. TBB_1, TBB. TBB_2
  9. FROM TBB
  10. WHERE
  11. TBB. TBB_3 LIKE '% NEWWEAPON %' TBB ),
  12. TBC
  13. WHERE
  14. Master table TBC
  15. Guid. TBA_A> 2
  16. From table TBB
  17. AND ga-. TBA_2 = TBB. TBB_2
  18. Slave table TBC
  19. Note TRIM
  20. And trim (guid. TBA_3) = TRIM (TBC. TBC_3 (+ ))

The above content is an introduction to the (+) connection in the Oracle database. I hope you will have some gains.

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.