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 6745995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:16:14+00:00 2026-05-26T12:16:14+00:00

I am trying to execute this insert statement into an oracle table but am

  • 0

I am trying to execute this insert statement into an oracle table but am getting an invalid number error. Oracle is pointing at the date as the issue. But I dont see the problem.

INSERT INTO DROPPER_VACATIONS 
VALUES (21111,
    to_char('2012-01-01','YYYY-MM-DD'),
    to_char('2012-01-01','YYYY-MM-DD'),
    to_char(sysdate,'YYYY-MM-DD'),
    'CRONUSER',
    to_char(sysdate,'YYYY-MM-DD HH:MI:SS AM'),
    'CRONUSER',
    NULL)
  • 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-26T12:16:15+00:00Added an answer on May 26, 2026 at 12:16 pm

    Those are not dates, but chars. You would need to_date to convert them to dates, but that would be silly, since you apparently need them as chars anyway.

    Or did you mean to use to_date to convert them to dates? That would be wise, since it is better to store dates as actual dates rather than chars.

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

Sidebar

Related Questions

I'm trying to execute an Insert statement, but keep getting a Invalid object name
I'm trying this SQL statement but I keep getting an error Run-time error '3061':
I'm trying to execute a basic INSERT statement on a MySQL table from a
I am trying to execute this but cant see any result: <script> function init()
I have a problem when trying to execute this update statement (below) using C#
I hit this error while my web application was trying to execute a SELECT
Not sure if I can explain this correctly, but I am trying to execute
I am trying to execute INSERT sqlite statements into my database using a method
I'm trying to use a BULK INSERT statement to populate a large (17-million-row) table
I am trying to insert a variable into mysql from jython and am getting

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.