Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4594644
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:51:26+00:00 2026-05-21T22:51:26+00:00

I have col1 in myTable which is varchar , and I have to insert

  • 0

I have col1 in myTable which is varchar, and I have to insert here timestamp eg:- 09-MAY-11 10.23.12.0000 AM.

Now please tell me:

  • How to insert into myTable with taking sysdate in above format…
  • How to retrieve data from col1 in tha same timestamp format..
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:51:27+00:00Added an answer on May 21, 2026 at 10:51 pm

    INSERT:

    insert into myTable (col1) VALUES (to_char(systimestamp, 'dd-mon-yyyy hh.mi.ss.ff4 AM') );
    

    SELECT:

    select to_timestamp(col1, 'dd-mon-yyyy hh.mi.ss.ff4 AM')  from myTable ;
    

    But it is much better to store the data directly as a timestamp.
    Then you can compare the values ​​or modify them directly.

    create table myTable1( col1 timestamp default systimestamp);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running this sort of query: insert into mytable (id, col1, col2) values
I have the following code: UPDATE myTable SET Col1 = @Value However, I have
I have a table, for example, mytable. It has several columns: col1, col2, col3.
Scenario: I have a table1(col1 char(5)); A value in table1 may '001' or '01'
I have this query to insert data which is not present inside mytab from
I have a string from oracle table like this: SELECT col1 FROM MyTable; col1
i have in a procedure which fills a table the following sql SELECT NVL(SUM(COL1),
I have table, MyTable, in Oracle 11GR2: COL1 VARCHAR2 COL2 VARCHAR2 COL3 VARCHAR2 COL4
Suppose I have columns col1 , col2 , col3 , col4 in myTable and
MY base table have two colums assume col1,col2. col1 have id, col2 have many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.