Inserting DATE/TIME

hi
I am using
INSERT INTO LIB_BOOK_ISSUE (ISSUE_DATE, AC_NO) SELECT ISSUE_DATE, AC_NO FROM LIB_BOOK_ISSUE5
to move data from LIB_BOOK_ISSUE5 to LIB_BOOK_ISSUE.
ISSUE_DATE has Date/Time valuse. When I use above INSERT statement then just Dates are inserted into LIB_BOOK_ISSUE. Plz write me the query so that both Date/Time values move.
Thanks

column ISSUE_DATE and AC_NO both play as primary key.
if i use
insert into LIB_BOOK_ISSUE select * from LIB_BOOK_ISSUE5;
then there is an error that unique value violated. thats why i think that if time value is not copying to LIB_BOOK_ISSUE5 then there may be unique key violation, elese there is no way that there is any key violation

Similar Messages

  • Inserting Date & Time in picture

    Hi,
    I am new to Adobe, after strugling to get iMovie to produce a decent HD movie, I am delighted with Premiere Elements 9 so far.  I am, however, asking for help and assistance in trying to insert the date & time (that the footage was shot) into text on the screen.  iMovie had this function which was very useful for home movies, but I cannot find this option?  Also, I have run a test video and have found a sound/video sync problem.  I am not running anti-virus software as I have a MAC and the saved movie is being exported to an external HDD through firewire.  Any help would be very much appreciated!
    Thanks
    John

    John,
    Welcome to the forum.
    PrE does not have a direct way to do this, however, you can create a Title, and manually add the time/date as text.
    There is a program, DVDate, that might prove to be helpful, though it's not a plug-in for PrE, so there is still some additonal work in the normal workflow.
    Good luck,
    Hunt

  • Inserting date & time in Word 2008 document

    I'm trying to create simple AppleScript and I'm hoping someone on here can help me.
    I work in Word 2008 for Mac and want to create a script that simply inserts the phrase "Left message(space)" plus the date and time whenever I run the script. I'd also prefer that the phrase be in italics if possible. I use this because I often call people and leave them a message and I like to keep a record of when I call them.
    I found this script online and modified it hoping it would meet my needs:
    tell application "Microsoft Word"
    tell selection
    type text text "Left message "
    create new field text range text object of selection field text {"DATE \\@ \"MM/d/yyyy\""}
    end tell
    end tell
    The result is that when I run the script, I get something like this in my document:
    Left message 6/10/2010
    It's a good start, but there are two problems with this.
    First, I would like to insert both the date AND the time.
    Second, when it inserts the date, it makes it an "update automatically" date that updates to the current time every time I open the document. This obviously doesn't help me keep a record of when I made a call. What I would like is for it to just insert the current date and time without updating automatically.
    Third, if possible, I would also like it to be in italics.
    It would look something like this:
    +Left message 6/10/10 5:29 PM+
    I appreciate any advice people can give.
    Message was edited by: LJH_CMH

    Second, when it inserts the date, it makes it an "update automatically" date that updates to the current time every time I open the document
    Sure, that's because you specifically tell it to. Your script inserts a 'new field' which is analogous to Word's dynamic text objects (date, time, page number, etc.)
    Instead, what you want to do is insert an actual string of characters - sure, to you and I that string of characters might look like a date and time, but to Word it's nothing more than a series of characters.
    For that we can fall back on AppleScript's date features, specifically current date, like:
    tell application "Microsoft Word"
      tell selection
        type text text "Left message " & (current date as text)
      end tell
    end tell
    Note that current date as text returns a rather verbose form of the date. If that's too much for you there are alternate options, such as:
    short date string of (current date) & space & time string of (current date)
    which will look more like: "6/10/10 3:26:50 PM"
    But there is also a myriad of other ways (with seconds, without seconds, 12/24 hr, etc.) depending on what you want.
    Third, if possible, I would also like it to be in italics.
    I'll have to look at that one, unless someone else beats me to it.

  • Insert date time into oracle database from jsp

    pls tell me ,from jsp how can I insert datetime values into oracle database .I am using oracle 9i .here is codethat i have tried
    html--code
    <select name="date">
    <option selected>dd</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    </select>
    <select name="month">
    <option selected>dd</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    </select>
    <select name="year">
    <option selected>dd</option>
    <option>2004</option>
    <option>2005</option>
    <option>2006</option>
    <option>2007</option>
    </select>
    here the jsp code
    <% date= request.getParameter("date"); %>
    <% month= request.getParameter("month"); %>
    <% year= request.getParameter("year"); %>
    try
    { Class.forName("oracle.jdbc.driver.OracleDriver"); }
    catch (ClassNotFoundException exception)
    try
         Connection connection = null;
         out.println("connectiong the database");
    connection = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcsid","scott","tiger");
    out.println("connection getted");
         int rows = 0;
         String query_2 = "insert into mrdetails values(?)";
         String dob = date+month+year;
         prepstat = connection.prepareStatement(query_2);
         prepstat.setTimestamp(4,dob);
         rows = prepstat.executeUpdate();
         out.println("data updated");
    catch (Exception exception3)
    out.println("Exception raised"+exception3.toString());
    }

    To insert date values into a database, you should use java.sql.Date. If it also has a time component, then java.sql.TimeStamp.
    Your use of prepared statements is good.
    You just need to convert the parameters into a date.
    One way to do this is using java.text.SimpleDateFormat.
    int rows = 0;
    String query_2 = "insert into mrdetails values(?)";
    String dob = date+"/" + month+ "/" + year;
    SimpleDateFormat sdf = new SImpleDateFormat("dd/MM/yyyy");
    java.util.Date javaDate = sdf.parse(dob);
    java.sql.Date sqlDate = new java.sql.Date(javaDate .getTime);
    prepstat = connection.prepareStatement(query_2);
    prepstat.setTimestamp(4,sqlDate);
    rows = prepstat.executeUpdate();
    out.println("data updated");Cheers,
    evnafets

  • How to insert date/time to sql database

    Hi,
    I would like to insert date and time alongside with my data receiving from the sensor.
    Right now i can insert data into sql table everytime when the data changes but i also wanted to insert the date and time as well.
    Thank you in advance!

    I create a field that is a datetime and set the default value to getdate().  So everytime i make an entry into this database, it automatically adds a datestamp.

  • Insert Date & Time question

    Does anyone know if there is a way to DESELECT the "Automatically update the date and time when the document is opened" dialog?
    Thanks.
    Paul

    The only way I can see is to create your own template with this unchecked. Then, when you open this template, auto date & time should be unchecked.
    It would be nice if this were a global preference. I suggest you leave feedback for the Pages team.

  • Problem while inserting Date/Time in Oracle Database

    Hai,
    i want to insert the date and time in a date column. here, i am using java.sql.Date and java.sql.Time to assign the date in Prepared Statement.
    PreparedStatement psmt=con.prepareStatement("insert into test(ex_date) values(?)");
    java.util.Calendar c=Calendar.getInstance();
    c.set(2002,2,21,10,10,00);
    java.sql.Date d=new Date(c.getTime().getTime());
    java.sql.Time t=new Time(c.getTime().getTime());
    psmt.clearParameters();
    psmt.setDate(1,d);
    psmt.setDate(1,t);
    psmt.executeUpdate();
    Above program is inserted the Date and time in the database as the following "1900/2/21 10:10 AM"
    but i am giving the year as 2002. it inserted the year as 1900. what is the problem with the code?
    please let me know
    Thanks in advance.
    Regards
    sankarjune14

    Hai Franco,
    i put the wrong code. Here, is the Original Code.
    PreparedStatement psmt=con.prepareStatement("insert into test(ex_date) values(?)");
    java.util.Calendar c=Calendar.getInstance();
    c.set(2002,2,21,10,10,00);
    java.sql.Date d=new Date(c.getTime().getTime());
    java.sql.Time t=new Time(c.getTime().getTime());
    psmt.clearParameters();
    psmt.setDate(1,d);
    psmt.setTime(1,t); // Last time i put psmt.setDate(1,t);
    psmt.executeUpdate();
    and, the getTimeInMillis() method is a protected method in java.util.Calendar class. how can we use it
    please give me some other idea to insert the date and time in oracle database.
    Thanks in advance
    sankarjune14

  • Font problem after inserting date/time.

    Can anyone help me with this problem? I write a daily journal in Times New Roman, 18 pt. However, when I have it insert the date and time it inserts it fine as TNR 18. But if I type the very next character it is TNR 10 pt. How do I prevent this?
    Thanks.
    Paul

    Paul, did you by chance change the Body text Paragraph Style to TNR 18? Or is it still set to 10?
    If it is set to 10 then while the Date and Time are going to be 18, Pages is reverting back to the normal Body paragraph Style, which is probably 10.
    You can get around this by changing your body style, or making a new one called "Entries" which is set to 18.

  • Insert Date Time

    db = XE
    I have imported the exif data from some images into an oracle table. I now want to insert the data into some other tables.
    I am having difficulty with the date and time data.
    The exif export contains the date and time like this;
    2011:11:30 18:19:56
    I have attempted to insert the data using the following sql;
    INSERT ALL
      INTO exif VALUES (exif)
    SELECT to_date(createdate,'YYYY/MM/DD HH24:MI:SS')
      FROM metadata;But it returns the following error;
    Error starting at line 13 in command:
    INSERT ALL
      INTO exif VALUES (exif)
    SELECT to_date(createdate,'YYYY/MM/DD HH24:MI:SS')
      FROM metadata
    Error at Command Line:14 Column:20
    Error report:
    SQL Error: ORA-00904: "EXIF": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:   
    *Action:I created a table like this;
    CREATE TABLE exif
        exif DATE
      );Could someone tell me what the problem is?
    Cheers
    Ben
    Edited by: benton on Dec 7, 2011 3:31 PM
    Edited by: benton on Dec 7, 2011 3:32 PM

      1  CREATE TABLE exif1
      2    (
      3      exif DATE
      4*   )
    SQL>
    SQL> /
    Table created.
    SQL> INSERT ALL
      INTO exif1(exif)
    SELECT to_date(SYSDATE,'YYYY/MM/DD HH24:MI:SS')
      FROM dual
    SQL> /
    1 row created.
    SQL> INSERT ALL
      INTO exif1(exif)
    SELECT to_date(SYSDATE+level,'YYYY/MM/DD HH24:MI:SS')
      FROM dual
    connect by level <=10
    10 rows created.

  • How to identify date & time of insertion of rows in a table

    Hi,
    Is it possible to identify the date & time of insertion of rows in a table?
    for example:
    Table name: emp
    I have rows like this
    emp_code name dept
    pr01 ram edp
    ac05 gowri civil
    pr02 sam pro
    i want to know the date and time of the insertion this( ac05 gowri civil).
    Could you please help me.....
    Thanks in advance....

    psram wrote:
    sorry for the confusion. I dont want to store date and time. I said that for example only.
    I have table which consists of thousands of rows. I want to know the insertion date & time of a particular row.
    Is it possible?So, if I have a table that stores a load of employee numbers, do you think I could get the database to tell me their names?
    If you don't store the information, you can't query the information.
    Ok, there are some dribbs and drabbs of information available from the back end of the database via the SCN's, Archive Logs etc., but those sort of things disappear or get overwritten as time goes by. The only way to know the information it to ensure you store it in the first place.
    So, in answer to your question, No, there isn't a true and reliable way to get the data/time that rows were inserted into the table, unless you have chosen to store it alongside the data.

  • Insert date and time

    This is a simple question but one that has been bugging me in a small way. If on a spreadsheet I press 'insert date and time' all I get is that day and date for example saturday 10th July 2010 and no time.
    Anyone offer an explanation for this?
    Thanks
    Mike

    Hello Peggy
    The problem was already reported to Bugs Hunters :
    +Bug ID# 7862838.+
    +In Numbers and Pages there is the function+
    +Insert > Date Time.+
    +At this time, its default behaviour is : insert the current date and the time 12:00:00 (without displaying the time).+
    +Given my own experience and what is often asked in Discussions forums, it would be interesting to change the default setting so that it inserts the current date & time and display both of them.+
    +Of course some users wish the availability of three items:+
    +Insert > Date defaulting to the sole date component+
    +Insert > Time defaulting to the sole time component+
    +Insert > Date & Time defaulting to the complete current dateTime.+
    +I preferred the scheme defaulting with the complete current dateTime because removing one component is faster than adding one using the existing protocol.+
    Yvan KOENIG (VALLAURIS, France) samedi 10 juillet 2010 19:05:47

  • How to insert EXIF date time data on photo using Photoshop CS5.5

    Is there any script or function available in photoshop CS5.5 which can help me in inserting date time from EXIF onto the photograph.
    An automated solution which can do multiple images at once will be preferable.

    Before proceeding further, it is to be highlighted that the version being referred to is Photoshop CS5 Extended which is actually Photoshop Version 12.1 and is a part of Adobe Master Collection CS5.5. A screenshot of the version information is attached below for information.
    Hence, I dont understand the concern expressed by many about the lowest version eligible for scripting being available in the product.
    My version is in effect 12.1 and not 7 or 8.
    Accordingly someone may advise on what script to use for inserting the EXIF data onto the image. I also want that the positioning of the text is predetermined and same for a batch of images required to be processed. I dont want to fix the position of text for each individual image.

  • How to get Inserted Date in Headers to change daily

    Using the latest version of Pages, how can I insert the Date and Time in a Header so that it changes automatically on a new date?
    Thanks for your help!

    Hello Sol Berger
    To change the setting on the inserted Data & Time, either right click or option click the date and there is an option that says Automatically update on open that would need to be checked to update when you open the document.
    Pages '09: Adding Page Numbers and Other Changeable Values
    http://support.apple.com/kb/PH10343
    To add and format the date and time, place the insertion point where you want the value to appear, and then choose Insert > Date & Time.
    To change the date and time format, Control-click the date and time value, choose Edit Date & Time, and then choose a date and time format from the pop-up menu. If you want the document to always show the current date and time, select “Automatically update on open.”
    Regards,
    -Norm G.

  • How do I stop auto update of date/time

    Hi,
    I'm starting to despair, a while ago I stupidly clicked on auto update/time on a letter I was working on, it seemed like a good idea at the time. But now whenever I open any letter the date is automatically updated which is a major problem as I am losing the references to when I actually wrote and therefore sent these letters. I'm too scared to open letters now because I'll lose this important piece of information.
    Any help appreciated!
    Thanks
    Nathalie

    Next time, don't use the Pages 's insert date_time feature.
    Use the one delivered in the free WordService from Devon Technologies.
    It always inserts a fixed date_time.
    But I have wondering about your problem.
    The Pages User Guide states:
    • To add and format the date and time, place the insertion point where you want the value to appear, and then choose Insert > Date & Time.
    To change the date and time format, Control-click the date and time value, choose Edit Date & Time, and then choose a date and time format from the pop-up menu. *If you want the document to always show the current date and time, select “Automatically update on open.”*
    Which, if I understand well means that the default setting is that the inserted date_time is a frozen (fixed) one.
    Yvan KOENIG (VALLAURIS, France) mardi 30 mars 2010 16:29:17

  • How to get Client(browser) current date/time in BIP report

    Hi,
    I need to display report generated date in BIP report and this should be client(browser) current date/time. I tried the following things.
    1. have used MS Word Native Date/time using Insert->Date/Time. And we have chosen the M/d/yyyy h:mm:ss am/pm format. but it is printing BIp server date/time, not client date/time.
    2. <?xdofx:sysdate?>, <?xdoxslt:sysdate_as_xsdformat()?> and <?format-date:xdoxslt:sysdate_as_xsdformat();'SHORT_TIME'?> are giving GMT Date/Time, but we need client Date/Time.
    3.<?xdoxslt:sysdate('DD-MON-YYYY HH12:mi:ss')?> is giving the system date/time of the machine where BIP server is installed.
    Could you provide some help in this??
    Thanks
    Hari

    Hello, Hari,
    what would return something like this:
    Execution date:
    <?xdoxslt:current_date('ja-JP', 'Asia/Tokyo')?>
    <?xdoxslt:current_time('ja-JP', 'Asia/Tokyo')?>
    @Vetsrini,
    for my opinion,
    in the countries where time is switching (winter/summer) using the hard coded time zones in the format-date() cause a problem:
    for example:
    if we enter the date in date prompt in summer it will return PM_DT = 2010-07-20T00:00:00.000+04:00
    in winter 2010-07-20T00:00:00.000+03:00, so,
    using <?format-date:PM_DT;'DD.MM.YYYY';'GMT+3'?> return 2010-07-20 in winter and 2010-07-19 in summer.
    regards,
    Eldar A.

Maybe you are looking for

  • MBP 15' 2011 Mini display port to LED monitor/TV resolution issue

    Hello, I have just bought  a Mini Display - VGA adaptor which I am plugging to a Samsung 23' LED monitor via a VGA/DVI adaptor. I manage to get a clone view but unfortunately, the maximum resolution offered is 1650x1050 when my Samsung LED monitor ha

  • Browser doesn't display applets (classes)

    hi all, i am sure every beginner faced the same problem though i am not a beginner, i am facing this strange problem, and i can't figure out where the proble is . i just started developing simple swing applications. first i want to try the examples g

  • ABAP OO - Exporting a multiline parameter

    Hi all, just about to give up trying to use ABAP OO!! We are on 6.40. I created a static method that will return the Agents (SWHACTOR-OBJID) for the next step in the workflow. How do I define an Exporting parameter to represent a multiline of SWHACTO

  • Power Mac G5 7800 GTX 512mb

    Hi everyone, not been a member here long but I am in desperate need of some help and/or direction I realise this is probably a heavily discussed topic but i'm another guy in need of some help. I own a DC 2.0 Power Mac G5 and it had a 6600 128mb graph

  • Why is the latest ISO7 not holding new notes?

    I have update my iPad and the new operating system is not saving the notes I now wish to add as new, I can update existing notes and they save?