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. sql/oracle

sql/oracle

Scheduled Pinned Locked Moved Database
databaseoraclequestion
9 Posts 5 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.
  • A Offline
    A Offline
    andreas_635
    wrote on last edited by
    #1

    hello everyone! I am trying to convert the below sql into oracle but i am having some issues with the variable declarations. ex. declare @md date set @md='7/1/2008' select @md in oracle how? any ideas? Thank you!

    A 1 Reply Last reply
    0
    • A andreas_635

      hello everyone! I am trying to convert the below sql into oracle but i am having some issues with the variable declarations. ex. declare @md date set @md='7/1/2008' select @md in oracle how? any ideas? Thank you!

      A Offline
      A Offline
      Al Ortega
      wrote on last edited by
      #2

      run this is SQLDeveloper and set serveroutput on; declare md date default '01-JUL-08'; begin select '01-JUL-08' into md from dual; dbms_output.put_line( md ); end;

      hth Al

      A J 3 Replies Last reply
      0
      • A Al Ortega

        run this is SQLDeveloper and set serveroutput on; declare md date default '01-JUL-08'; begin select '01-JUL-08' into md from dual; dbms_output.put_line( md ); end;

        hth Al

        A Offline
        A Offline
        andreas_635
        wrote on last edited by
        #3

        thank you for reply ,that was what i want!

        1 Reply Last reply
        0
        • A Al Ortega

          run this is SQLDeveloper and set serveroutput on; declare md date default '01-JUL-08'; begin select '01-JUL-08' into md from dual; dbms_output.put_line( md ); end;

          hth Al

          A Offline
          A Offline
          andreas_635
          wrote on last edited by
          #4

          thank you for reply ,that is what i want!

          1 Reply Last reply
          0
          • A Al Ortega

            run this is SQLDeveloper and set serveroutput on; declare md date default '01-JUL-08'; begin select '01-JUL-08' into md from dual; dbms_output.put_line( md ); end;

            hth Al

            J Offline
            J Offline
            J4amieC
            wrote on last edited by
            #5

            All of that just to output a date :wtf: I'll stick to SQL Server

            A P 2 Replies Last reply
            0
            • J J4amieC

              All of that just to output a date :wtf: I'll stick to SQL Server

              A Offline
              A Offline
              Al Ortega
              wrote on last edited by
              #6

              They both have their advantages and disadvantages...

              hth Al

              M 1 Reply Last reply
              0
              • J J4amieC

                All of that just to output a date :wtf: I'll stick to SQL Server

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                J4amieC wrote:

                All of that just to output a date WTF I'll stick to SQL Server

                :laugh: I'll second that :)

                "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                1 Reply Last reply
                0
                • A Al Ortega

                  They both have their advantages and disadvantages...

                  hth Al

                  M Offline
                  M Offline
                  Mycroft Holmes
                  wrote on last edited by
                  #8

                  Is this simplified if you use something like TOAD? While I have not used Oracle in a decade it was always lacking a good UI and we found TOAD the equivalent of the old SQL Query Analyser. Is this still the case.

                  Never underestimate the power of human stupidity RAH

                  A 1 Reply Last reply
                  0
                  • M Mycroft Holmes

                    Is this simplified if you use something like TOAD? While I have not used Oracle in a decade it was always lacking a good UI and we found TOAD the equivalent of the old SQL Query Analyser. Is this still the case.

                    Never underestimate the power of human stupidity RAH

                    A Offline
                    A Offline
                    Al Ortega
                    wrote on last edited by
                    #9

                    You mean SQLDeveloper- it's an IDE from Oracle (FREE) - Never been a TOAD guy either but it does do explain plans, intellisense, run scripts and even do a diff between schemas.

                    hth Al

                    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