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

  • Home
  • SEARCH
  • 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 8170851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:16:15+00:00 2026-06-06T21:16:15+00:00

I created a table with TIMESTAMP(9) in Oracle 10g. Then i tried to insert

  • 0

I created a table with TIMESTAMP(9) in Oracle 10g. Then i tried to insert CURRENT_TIMESTAMP value in that column but unfortunately got the error message: value too large for column: (actual: 35, maximum: 25)

Then i tried this query:

select length(current_timestamp) from dual;

and the count was 35.

But Oracle does not allow me to define TIMESTAMP(35) while creating the table structure.

In such a case, how to define the Timestamp column while creating the table and how to insert the Current Timestamp value in the Timestamp column?

  • 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-06-06T21:16:16+00:00Added an answer on June 6, 2026 at 9:16 pm

    Can you post your table definition and the exact SQL statement you are using to insert the CURRENT_TIMESTAMP? If you’re actually inserting a TIMESTAMP you shouldn’t get that error

    SQL> create table foo ( col1 timestamp(9) );
    
    Table created.
    
    SQL> insert into foo values( current_timestamp );
    
    1 row created.
    

    length(current_timestamp) is implicitly converting the timestamp to a string and determining the length of that string. The error you are getting seems to imply that there is a similar conversion happening when you are trying to insert the data into the table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a column in an Oracle DB table that is of type TIMESTAMP(6)
I've got a table that collects forms submitted from our website, but for some
Given an Oracle table created using the following: CREATE TABLE Log(WhenAdded TIMESTAMP(6) WITH TIME
In MySQL, I can create a table with a timestamp column which value gets
I've got a table like so: CREATE TABLE IF NOT EXISTS grades(_id, timestamp, extra);
I created a table then added a foreign key reference to its primary key
I have created a table called myTable with a column called CURRENT_DATE and it's
In most of my databases that I have created I've always named my column
i am looking at some practice questions Assume that you've just created this table:
I want to have one table with two TIMESTAMP columns. One column to keep

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.