convert timestamp to date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vanidamodaram
    New Member
    • Jul 2007
    • 1

    convert timestamp to date

    can any one help me for the following problem
    i have a timestamp database column in a table which is having some timestamp values and some are not there. so now i want to delete the timestamp values which are having other than date and the same time i want to alter the column into date can i.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Since you have posted a question in the article section it is being moved to oracle Forum.

    MODERATOR

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      Do you want to remove only the time part of the timestamp field.

      in that case , try the following

      Code:
      update table set field_name = trunc(field_name);
      
      alter table tabele_name modify field_name date;

      Comment

      Working...