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. How Do I display current date and time in Toad for Oracle?

How Do I display current date and time in Toad for Oracle?

Scheduled Pinned Locked Moved Database
oraclequestiondatabasehelp
4 Posts 4 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.
  • J Offline
    J Offline
    Justiin1265
    wrote on last edited by
    #1

    I have a sql statement that counts the units(cable boxes) that were refurbed(had damaged parts replaced) and total units(cable boxes that just went through refurb and had nothing replaced) and its supposed to do this count regularly, (every time a unit is processed the count). Can someone please help me? Thank you. Justin Heres my sequal code so far: SELECT COUNT(*) FROM cxadminn.repair_part WHERE repair_type = 'REFURB' and created_date >?

    W J P 3 Replies Last reply
    0
    • J Justiin1265

      I have a sql statement that counts the units(cable boxes) that were refurbed(had damaged parts replaced) and total units(cable boxes that just went through refurb and had nothing replaced) and its supposed to do this count regularly, (every time a unit is processed the count). Can someone please help me? Thank you. Justin Heres my sequal code so far: SELECT COUNT(*) FROM cxadminn.repair_part WHERE repair_type = 'REFURB' and created_date >?

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      If you want to get the current date including time you use SYSDATE. For example:

      SELECT SYSDATE FROM dual;

      But I don't know why would you put SYSDATE in place of the question mark unless you have rows in the table where created date is in the future?

      The need to optimize rises from a bad design.My articles[^]

      1 Reply Last reply
      0
      • J Justiin1265

        I have a sql statement that counts the units(cable boxes) that were refurbed(had damaged parts replaced) and total units(cable boxes that just went through refurb and had nothing replaced) and its supposed to do this count regularly, (every time a unit is processed the count). Can someone please help me? Thank you. Justin Heres my sequal code so far: SELECT COUNT(*) FROM cxadminn.repair_part WHERE repair_type = 'REFURB' and created_date >?

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

        Exchange the ? with a "to_date" function. For example: to_date('2009/07/09', 'yyyy/mm/dd') would return a date value of July 9, 2009. There's more on the formatting here[^]

        List of common misconceptions

        1 Reply Last reply
        0
        • J Justiin1265

          I have a sql statement that counts the units(cable boxes) that were refurbed(had damaged parts replaced) and total units(cable boxes that just went through refurb and had nothing replaced) and its supposed to do this count regularly, (every time a unit is processed the count). Can someone please help me? Thank you. Justin Heres my sequal code so far: SELECT COUNT(*) FROM cxadminn.repair_part WHERE repair_type = 'REFURB' and created_date >?

          P Offline
          P Offline
          Prasanta_Prince
          wrote on last edited by
          #4

          SELECT current_date FROM dual; or SELECT SYSDATE FROM dual;

          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