Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. MySQL Query Example/Solution of Oracle Query

MySQL Query Example/Solution of Oracle Query

Scheduled Pinned Locked Moved Database
databasemysqloracletutorialquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    M Riaz Bashir
    wrote on last edited by
    #1

    Hi, Please let me know the solution of mentioned Oracle Query, that how can I use the same in MySQL.

    SELECT A.CNAME, B.ANAME FROM CLIENT A, DEALER B
    WHERE A.CCODE=B.ACODE(+)

    Thanks (Riaz)

    L J 2 Replies Last reply
    0
    • M M Riaz Bashir

      Hi, Please let me know the solution of mentioned Oracle Query, that how can I use the same in MySQL.

      SELECT A.CNAME, B.ANAME FROM CLIENT A, DEALER B
      WHERE A.CCODE=B.ACODE(+)

      Thanks (Riaz)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Which part did not work? What error did it throw?

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      • M M Riaz Bashir

        Hi, Please let me know the solution of mentioned Oracle Query, that how can I use the same in MySQL.

        SELECT A.CNAME, B.ANAME FROM CLIENT A, DEALER B
        WHERE A.CCODE=B.ACODE(+)

        Thanks (Riaz)

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #3

        MySql doesn't do implicit outer joins, you'll have to do the full ANSI syntax instead.

        SELECT. A.CNAME, B.ANAME
        FROM CLIENT A,
        LEFT OUTER JOIN DEALER B
        ON A.CCODE = B.ACODE

        Wrong is evil and must be defeated. - Jeff Ello (√-shit)2

        L M 2 Replies Last reply
        0
        • J Jorgen Andersson

          MySql doesn't do implicit outer joins, you'll have to do the full ANSI syntax instead.

          SELECT. A.CNAME, B.ANAME
          FROM CLIENT A,
          LEFT OUTER JOIN DEALER B
          ON A.CCODE = B.ACODE

          Wrong is evil and must be defeated. - Jeff Ello (√-shit)2

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          ..that's what the plus does? Nice :)

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          J 1 Reply Last reply
          0
          • L Lost User

            ..that's what the plus does? Nice :)

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

            J Offline
            J Offline
            Jorgen Andersson
            wrote on last edited by
            #5

            Yeah, but note that the plus isn't on the outer side. It marks the side with the nulls.

            Wrong is evil and must be defeated. - Jeff Ello (√-shit)2

            1 Reply Last reply
            0
            • J Jorgen Andersson

              MySql doesn't do implicit outer joins, you'll have to do the full ANSI syntax instead.

              SELECT. A.CNAME, B.ANAME
              FROM CLIENT A,
              LEFT OUTER JOIN DEALER B
              ON A.CCODE = B.ACODE

              Wrong is evil and must be defeated. - Jeff Ello (√-shit)2

              M Offline
              M Offline
              M Riaz Bashir
              wrote on last edited by
              #6

              thank you sir

              J 1 Reply Last reply
              0
              • M M Riaz Bashir

                thank you sir

                J Offline
                J Offline
                Jorgen Andersson
                wrote on last edited by
                #7

                You're welcome.

                Wrong is evil and must be defeated. - Jeff Ello

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups