Insert the Date and time of the questions

Hi all

I have a simple select query as follows... UPLOAD_DATE stands to table1 in the following format: 23/01/2012-13:04:36

< name cfquery = 'test' datasource = 'test' >

SELECT UPLOAD_DATE

FROM TABLE1

< / cfquery >

and I have a loop around the query above to insert into another table...

< cfloop query = 'test' >

< cfquery name = "make_tfer2" datasource = 'test' >

INSERT INTO TABLE2

(UPLOAD_DATE)

VALUES

(#test. UPLOAD_DATE #)

< / cfloop >

< / cfloop >

But, when I insert into table2 it inserts the release date: 23/01/2012... How can I fix this code so I can insert the release date: 23/01/2012-13:04:36?

Your approach is ineffective.  Instead of a loop in the results of the query and make individual inserts, make a single sql insert.

Insert into table2

Select all that

FROM table1

For your post at 04:48, of course there is no component "hour".  The example you showed has time 00:00.

Tags: ColdFusion

Similar Questions

  • Insert the date and time in writing to the worksheet

    Simple question here

    I need save 4 data tables and insert the date and time at which it was taken (LV 8.6)

    for example

    04/09/09 10:00:01 4 6 7 2

    04/09/09 10:00:02 4 6 7 2

    04/09/09 10:00:03 4 6 7 2

    04/09/09 10:00:04 4 6 7 2

    Any ideas, I can't wire the right timestamp or date/time string in the table to create

    Thank you

    Chris

    Someone there doing the same thing that I am, I got it to work with the attached VI.

  • Insert the current date and time

    Stupid question. I watched the different applications that insert the date and time in a database field. I noticed that some applications use systematically function now() FC and others use a database such as sysdate or getDate function. Situations in which you want to use the function now() CF instead of a database function and vice versa?

    This helped. Thank you all.

  • As of the 31 version, why is there still no option of Thunderbird to insert the date and time in the message that you write?

    As of the 31 version, why is there still no option of Thunderbird to QUICKLY insert the date and time in the message that you write?

    Literally, saw this option very well needed - and opportunity-"promise" for three years now, and even if there are only one or two formats that could be used, at least the option is there.

    It seems that only is to bind a Macro, and the tool to Thunderbird and do it this way.

    Joe Rotello
    [email protected]
    Skype: joerotello

    If the installation of the add-on of TimeStamp is unacceptable for see you if there is a related add-on that you that you already might have managed to convince author to add your function. The Add on more for example has many variables that can enter the body of the message that get automatically replaced with the appropriate data when you merge a message.

  • I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when it is inserted and

    I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when inserted and always reflect when the stamp was created and the name is always my name. I try to have the user name or the username inserted so that he who is the insertion of the postmark of the stamp automatically inserts their name and what day and time the stap is inserted. I can't get this dynamic stamp works like the default Adobe Acrobat Dynamic stamps. Can anyone help with this one. Thank you

    Have you created a page template for your stamp? Did name the template of the page correctly? It's the right format:

    #InternalStampName = display name of stamp

  • Need to insert the Date and time with AM or PM

    StartDate form has ' 25/07/2006' and Starttime "13:07.
    I need to add this field in the database to display the Date and time with the AM or PM. But the result I get is false.
    <! - concatenate fields - >
    "< cfset Startdate = #Startdate # &" "& #starttime # >.

    < cfset startdate = #DateFormat (CreateODBCDateTime (Startdate), ' mm/dd/yyyy hh: mm: tt ') # >
    Here is my production. This is not the AM or PM conversion part of the chain.

    25/07/2006 01:07 am

    My database is SQL 2000

    You use any of dateformat. The createodbcdatetime sends the correct your DB value if you do it right.

  • I would like the date and time is displayed on my images

    I have a Cybershot DSC-S2100. I put the date and time on my camera, and I can see when I go through the photos on the camera. However, when I transfer the photos to the computer, the date and time does not appear on the images. I would like the date and time to be printed on the pictures. Can someone tell me please how to do? Thank you.

    Hi Cho,

    The DSC-S2100 camera doesn't have a feature for superimposing dates on images. You can use the supplied Picture Motion Browser (PMB) or the software PlayMemories home (WPH) improved to print or save images to the computer with the date.

    Insert the date in pictures using PMB:

    http://support.d-Imaging.Sony.co.jp/www/disoft/int/PMB/feature/edit/attach_date.html

    Insert the date in the images using TDC:

    http://support.d-Imaging.Sony.co.jp/www/disoft/int/playmemories-home/operation/edit/attach-date.html

    If my post answered your question, please mark it as an "accepted Solution".

  • Can I change the date and time on my account?

    Is there anywhere on this site where I can set the details of the date and time?

    When I posted a recent issue, the date and time were incorrect IE not my country date & time.

    Thank you

    Sylvia

    PS Sorry if this is the wrong place to post this question, not that the possibilities of passage are really there?

    The date and time are universally on us Pacific time zone. You can't change it.

  • Automatically set to the Date and time does not

    Date and time settings on my iPad Air set them automatically does not work? When I turn it out it will allow me to choose a city (Knoxville).

    When I turn it on with (location settings) it just turns and turns?

    Any ideas?

    Hello and welcome to Apple Support communities,

    This problem may be caused by a number of things, most often the cause is the device not being able to contact the time server. Here are the instructions from Apple supported for this problem, as well as a link to the appropriate article.

    Follow these steps, after each step:

    1. Make sure you have the latest version of iOS.
    2. Automatically turn on set in settings > general > Date & time. This will automatically put your date and time based on your time zone.
    3. Make sure that your time zone is set correctly. Tap Settings > general > Date & time > time zone.

    If you still have any questions affecting your date, time, or time zone, you can automatically disable in the settings > general > Date & time and manually set the time and time zone. Or contact your carrier.

    The option to enable the value automatically may not be available in all countries or all shells.

    If the time on your iOS device does not go after a sync with your computer, the computer may be time wrong. Check the time on your computer in system preferences > Date & time. You can select "Set date and time automatically."

    Support the Article HT203483

    Get help with the date and time on your iPhone, iPad and iPod touch - Apple Support

    Of course, if the time of your carrier server cannot connect the other option is to manually set the date and time until the carrier server are again available.

    Hope you helps out.

    Kind regards

    Peter.

  • 'RT Set date and time' does not define the UTC seconds

    Hallo,

    I tried to set the time on my cRio 9012 with the function settimeUTC which is used by the vi "the Date and time value. But the second I get home are ADDED to the current time and not defined as the new value.

    Even the vi illustrates this behavior: I've set up a vi time where in a loop (100ms delay) and reread. When I put in local time stop the clock (as expected), but when I put the UTC time the Dungeon seconds on the run...

    Can someone help me with this problem?

    Thank you

    Florian

    Hi Florian.

    After posting your version of LabVIEW, I found an answer to your question:

    The behavior you're seeing is a known bug that has been fixed in LabVIEW 8.5.1. Workaround is to use set local time instead.

    Let me know if you have any other questions.

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • How to set the Date and time on a remote target in Measurement &amp; Automation Explorer (MAX)?

    Hello

    I'm trying to follow the steps described in the following link:

    How to set the Date and time on a remote target in Measurement & Automation Explorer (MAX)?

    It is said

    The software on the target currently supports only the time zoneand deletes the old files?

    I need set the date and time

    and remove all the old unwanted files

    the calendar was gray does not allow me to change the current date.

    Anyone know how to change

    Hi all!

    According to this the below Knowledge Base article, Remote Configuration System Support must be installed on the target for time settings to change in MAX.

    http://digital.NI.com/public.nsf/allkb/FAB0EC4D6E5EE0F386257738005733A3?OpenDocument&MeTC=max_MAXDat...

    If you don't know what version of the system supported remote Configuration software that you have installed on your device target, it is likely that it is not yet installed. Add this software by clicking below your target to the MAX software option and selecting "Add/Remove Software". This is where you will install the System Configuration Remote Support software.

    Please let us know if you have any questions!

  • Application of F1 / reset the date and time

    OK could not hang out long so here my problem feel free to move it if you must.

    Hi everyone I'm new here and I'm looking for the answer to what should be a simple question, but I can't find the answer, anywhere, not even after much research on the internet.

    My problem.  I woke up in a constant demand press F1 at the start and I had to constantly reset the date and time. A friend told me that he knew the solution and he replaced the battery Cmos and during one period of time applications of F1 and the need to reset the date and time on start arrested. Then, after a few weeks the F1 ask on startup and delivery to reset the date and time again.

    The situation at the present time, is that I replaced battery comos with the same type and the F1 started queries rearrested again. But once again after a few weeks the demand of the f1 and the need to reset the date and the tooth is distributed.

    I wonder if my friend used the bad battery when he replaced everything first, can someone out there please tell me the correct Cmos battery number and size, I need to motherboard below.

    Acer Apaire E380-CB7L mother board HT 2000 MCP6PM - Re3v:1.0 AM A what is battery correct Cmos?

    I found my answer in a response to another thread. It seems that some how the bad battery had been mounted and in my ignorance of this I still once mounted battery hurt it then compounded the problem further.

    It seems that the CMOS battery on the motherboard usually is a CR 2032 3V , I now nested together for my MB. I'll let you know if it works.

    BTW thanks to the person who advises I took on it.

  • Add the date and time the image of the photo

    How can I add a stamp date and time for my photos. The information is imported from my camera, but I would like it to be on the image itself and must be able to do the pictures in my photo album.

    How can I add a stamp date and time for my photos. The information is imported from my camera, but I would like it to be on the image itself and must be able to do the pictures in my photo album.

    ==================================
    Perhaps the following free software would be
    be worth a try.

    FWIW... you can add date/time to
    a batch of photos using the free software
    FastStone Image Viewer.

    FastStone Image Viewer
    http://www.FastStone.org/FSViewerDetail.htm

    I suggest that you create a new folder and add
    copies of your photos for experimental purposes.
    If you are unhappy with the result your originals
    will be intact.

    "Basic steps to add dates to image files.
    using Fast Stone Image Viewer'...
    (FWIW... it's easier to do than to explain)

    (You may need to experiment with the post office, police
    size, color and different Variables to achieve
    the desired result).

    Tools / open the Batch Conversion / tab Batch convert...

    Check the box... Use of advanced options...

    Advanced Options button / tab text.
    Check the box... Add text...
    (If the white field has any text inside...
    by selecting erase it and press your delete key...

    Open the window drop... "Insert a Variable."
    choose... EXIF DateTime / Date and time... Ok...

    Browse for the files you want to attach... Select
    them and on the left, click on the Add button...

    Choose an output Format...

    Choose an output folder...

    Check the "Rename..."

    Click on the button convert...

    When the files are converted... Click done...

    Now go to your backup folder and see the result...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How can I print my photos displaying the date and time stamp

    I have pictures in a legal context but do not understand how to print them displaying the date and time stamp.  The timbre of the date and time are necessary for me to present my case exactly.  Can someone tell me how to print with these marks.

    Thank you

    The following instructions will prepare photos
    with the EXIF Date/time stamp then you can print
    them.

    FastStone Image Viewer freeware can add
    EXIF Date/time in the face of your photos in a batch.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    FastStone Image Viewer
    http://www.FastStone.org/FSViewerDetail.htm
    (Windows XP / Vista / 7)

    I suggest that you create a new folder and add
    copies of your photos for experimental purposes.
    If you are unhappy with the result your originals
    will be intact.

    After FastStone is downloaded and installed...
    Open the program and go...

    Tools / open the Batch Conversion / tab Batch convert...

    Check the box... Use of advanced options...

    Advanced Options button / tab text.
    Check the box... Add text...

    (You will need to experiment with the position and the police
    size and color to get the desired result.)
    (the text size will need to be adjusted according to the)
    the size of the photos)

    Open the window drop... "Insert a Variable."
    choose... EXIF Date Time / Date and time...
    (in the white field you should see ($H1)
    Left click... Ok

    On the Batch tab convert... in the left field...
    Left click the square button "select the Source folder.
    Find and select the photos you want to
    Add.

    Left, click on the Add button to move the files to
    the right field.

    Choose an output Format...

    Choose an output folder...

    Click on the button convert...

    It's much easier to do than to explain then
    give it a try before say you "Good Grief... it's too
    a lot of work.

  • given the date and time not set when computer starts. also have a problem with typing

    by turning on my computer, sometimes it lights up at all, and then I try several times so that it lights up. When switching on the main screen, it says error due to the date and time not set and puts my computer starts in safe mode. When I am that I then have to set the date and time again. Why this keep happening?

    on my second question that I have is when I type an email or anything, my writing will just jump on another line and start typing in the middle of other sentences. Why is it jump around like that?

    You may have a failed in your motherboard CMOS battery.

    It's a battery power supply NET, size piece that keeps your system settings when your computer is off.

    They cost about $5 to replace.

    http://www.computerhope.com/issues/ch000239.htm

    How to replace the CMOS battery in the above link info.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • How can I get rid of the bookmark icons

    On the toolbar, but ALL this favorite icons. I hate them. Do not need them. Is there a simple setting somewhere in Firefox to handle this? If this isn't the case, it might be something they would consider to add in the future to turn them off in the

  • Search on Google Map is not locate or the icon to zoom level; IE works fine.

    Google Maps has stopped working correctly, so I upgraded to 3.8.something 5.0.1. This has not fixed the problem. Search by map displays a result with an address, but not pinpoint the location on the map. The zoom control with the icon on the same lev

  • Tecra M4 - WLan & BT broadcast on the same frequency

    Dears I have problem with my Toshiba laptop tecra m4 and I did the below:# disabled Bluetooth, infra & LAN (no result)# Update driver Intel pro 2200 wireless (no result)# change frequency (no result)# updated the wood driver (no result)Please note th

  • Wish to no longer receive postmaster e-mail in Hotmail account.

    Original title: Postmaster sends an e-mail. someone knows how to no longer receive e-mail from master in a hotmail account that you have not sent?

  • computer slow ection off websites

    I have windows xp.  When I have x on a Web page or a Web site it will be anywhere from 3 to 10 seconds it disappears from the display.   It will last for a week or two, then it will change back and x out almost immediately and it will last about a we