CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Posts
    1

    get last records in oracle

    Hi,
    I want records which are inserted in last one hour. As i have column called create_stamp which takes a system time for every record. What is possible solution which i can use to retrive a last one hour records.

    kiran

  2. #2
    Join Date
    Jan 2005
    Location
    Vijayawada,India
    Posts
    30

    Thumbs up Re: get last records in oracle

    hi,

    try this....

    select * from tableName
    where DATEDIFF(hh, modified_on, getdate()) <= 1

    for more info go to DATEDIFF() - IN SQL SERVER

    all the best........

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured