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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:53:30+00:00 2026-05-31T10:53:30+00:00

I am generating dummy data for a database, one attribute is using TIMESTAMP(6) .

  • 0

I am generating dummy data for a database, one attribute is using TIMESTAMP(6).

Can anyone give me an example of how the value looks?

Also I would like to be able to insert the date along

i.e 03/18/2012 02:35 AM

so that it looks like

INSERT INTO FLIGHT VALUES (1,'London Heathrow','Miami Airport','03/18/2012 02:35 AM','04/18/2012 13:35 PM');

Is this possible? Thanks alot…

EDIT—-

How can i get rid of the timestamp column massive space

space

  • 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-31T10:53:32+00:00Added an answer on May 31, 2026 at 10:53 am

    Whenever you are dealing with DATE or TIMESTAMP data types, you should always insert DATE or TIMESTAMP values. You should not be inserting strings and relying on implicit conversions to convert the string to a DATE or a TIMESTAMP. You should be explicitly calling TO_DATE or TO_TIMESTAMP. Your INSERT statement should also be explicitly listing the names of the columns you’re inserting into.

    You’d want your INSERT statement to look something like this

    INSERT INTO FLIGHT( <<list of columns>> )
      VALUES (1,
             'London Heathrow',
             'Miami Airport',
             to_timestamp( '03/18/2012 02:35 AM', 'MM/DD/YYYY HH:MI AM'),
             to_timestamp( '04/18/2012 13:35 PM', 'MM/DD/YYYY HH:MI AM') );
    

    You can adjust how SQL*Plus displays the data in a particular column by changing the format mask. For E.g.

    SQL> column dept_time format a30;
    SQL> column arrv_time format a30;
    

    will cause SQL*Plus to display both DEPT_TIME and ARRV_TIME in 30 horizontal characters (your current NLS_TIMESTAMP_FORMAT appears to generate 28 character strings, if you change your NLS_TIMESTAMP_FORMAT, you may want to change the width of the column you’re asking SQL*Plus to display).

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

Sidebar

Related Questions

Generating normal columnar data in excel file is quite easy but does any one
I'm generating ICalendar (.ics) files. Using the UID and SEQUENCE fields I can update
Hi every one I am using iReports for generating one of the reports and
When generating a table of data on a web page, I usually give the
Possible Duplicate: Tools for Generating Mock Data? I am running SQL Server 2005 and
Short Generating table with barcodes of items. Each item has exact quantity in database
while generating DAO classes using hbm2dao, is it possible to provide a custom package
I'm generating an unknown amount of checkboxes in my form using mysql, this number
When generating IL using DynamicMethod it's possible to call methods and access fields that
I am creating a Web Service using ASP.NET C#. I am sending various data

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.