DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: help needed in date

  1. #1
    Join Date
    Jun 2008
    Posts
    38

    help needed in date

    i have a table containing 1200+ records.

    My requirement: i need to find all the rows which has date older than 7/3/2003 and then delete them.

    can any1 tell me how to do this using sql query?

    to view i know:

    select * from std_detail where time_value < to_date('7/3/2003','dd/mm/yyyy')

    but not getting the deletion part implemention?
    Last edited by ali560045; 07-08-2008 at 02:54 AM.

  2. #2
    Join Date
    Jun 2007
    Location
    Milwaukee,WI
    Posts
    27
    use google search.. come on u can do it.

    Akash
    OCP 8i


  3. #3
    Join Date
    Aug 2007
    Location
    Cyberjaya,kuala lumpur
    Posts
    340
    can you tried like this

    delete from std_detail where time_value < to_date('7/3/2003','dd/mm/yyyy')

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