Conversion of HH24:MI:SS to the second question

Hello everyone,

I am fairly new (read: about 2 days) for the entire PL/SQL world and I have a small problem with one of my projects. I have googled and looked around forums and tried to apply what I took place, but so far without success.

The general situation is the following:

I create a .bat file that allows to retrieve data in a comma-delimited file and 'download' the data in a table of my choice. However, in the file, I am 'loading', one of the columns contains a time value of the HH24:MI:SS type (for example: 0:05:32). The sequence of the column in the file matches that of my table and the .bat file.

My stand-alone table to test this conversion looks like this:

Table: Conversion_Test

Column name data type
NUMBER OF AUTO_ID (12)
NUMBER OF TIMES (12)
WORK VARCHAR2 (32 bytes)
DATE OF UPLOAD_DATE

AUTO_ID and UPLOAD_DATE columns are filled by the triggers that have been tried, tested and found to be working very well. My test file contains 1 row data raw (no header or any other information is present).

I managed to convert the HH24:MI:SS in seconds through SQL * more interface with the following query:

----------------------------------------------------------------------------------------------------------------------------------------
SELECT
SYSDATE, to_number (substr (' 00:05:32 ', 1, 2) * 3600 + substr ("00:05:32 ', 4, 2") * 60 + substr (' 00:05:32 ', 7, 2))
of the double

Which returns the correct result:

SYSDATE
--------
TO_NUMBER (SUBSTR (' 00:05:32 ', 1, 2) * 3600 + SUBSTR (' 00:05:32 ', 4, 2) * 60 + SUBSTR ("00:05:32)
--------------------------------------------------------------------------------
23/10/08
332

Relevant potential content off (not entirely) .bat file:

DOWNLOAD THE DATA
INFILE 'dat\%date%.dat '.
Add
IN THE Conversion_Test TABLE
FIELDS TERMINATED BY '; '.
(
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX *.
Working
)

* XXXXXXXX = location of relevant statement.

I tried to reproduce the results of my query sysdate with the following statements:

1 time "to_number (substr ('Time', 1, 2)) * 3600"" +"to_number(substr ('Time', 4, 2)) * 60 "" " + " to_number(substr ('Time', 7, 2))"",

This generates the following error message:

SQL * Loader-350: Syntaxiserror in the 7th.
', 'from') ' expected, '+' found.
Time "to_number (substr ('time', 1, 2)) * 3600" + "to_number (substr ("Time"^)).


2 time "to_number (substr ('Time', 1, 2)) * 3600 + to_number(substr ('Time', 4, 2)) * 60 + to_number(substr ('Time', 7, 2))" "."

3 time "to_number (substr ('Time', 1, 2)) * 3600 + (substr ('Time', 4, 2)) * 60 + (substr ('Time', 7, 2))" "."

These generate the following error message:

Sheet 1: denied-error in the table CONVERSION_TEST, TIME column.
ORA-01722: invalid number

4 time "to_number (substr ('time', 1, 2)) * 3600 + (substr ('Time', 4, 2)) * 60 + (substr('Time',7,2)) double«,»»

This generates the following error message:

Sheet 1: denied-error in the table CONVERSION_TEST, TIME column.
ORA-00917: lack of comma

Question: I want to do is turn this HH24:MI:SS 'format' in seconds and then put them in a column of my table numbers by running the .bat file.

I hope I've provided enough information to give you a good overview of the problem and possible solutions.

With respect,

Luhaine

Published by: user10465140 on 23-Oct-2008 07:28

Published by: user10465140 on 23-Oct-2008 07:30

Published by: user10465140 on 23-Oct-2008 07:30

Published by: user10465140 on 23-Oct-2008 07:33 - Clearafication and clean.

.. .or let Oracle do the math:

time "to_number (to_char (to_date (: time, 'HH24:MI:SS'), 'SSSSS')).

Tags: Database

Similar Questions

  • Time scale: change of executives at the second question (photo)

    For some reason any rule displays the images and not in seconds. I tried to browse the different modes of time by ctrl clicking on it as well as modifyign in file-> settings of the project, but the seconds will not be displayed on the time scale. Please look at the picture below. I also tried to reset the standard workspace by default with no result.

    What I am doing wrong?

    Thank you

    seconds.png

    The top timeline in your first post IS showing seconds.  You're just expanded it so that it divides also seconds from executives.  So it is meaning 1:00f (1 second) then 10 frames, 20 frames, then 2:00f (2 seconds).

    Do more than the model is visible in time and you will see the frame identification disappear.

  • Conversion to the second question time scale

    In the project settings, I specified to use a 00:00:00:00 of time code where the timeline should display hours, minutes, or seconds in the film. However, the timeline shows still frames as you can see below. What I am doing wrong?

    timeruler.png

    perfectblue wrote:

    The first problem, I noticed that it's when I go back to the settings of composition, or view the timeline, it shows one minute and six seconds (0:00:01:06) for the duration of the model

    No it's not. He demonstrated a second and six executives.

  • First Quiz question is ignored during the second attempt.

    Hi all

    I have this weird problem with a quiz.

    Situation

    With Captivate 6.1, I have a Question of pool with 5 questions. The issues are all 1.7 sec on the timeline with the standard pauzé at 1.5. No feedback is given, all buttons are disabled except the submit button.

    In the project, I have 5 random slides, related to the question of the questions pool.

    The quiz settings: 80% for spend, infinite attempts.

    Question

    When I start the second or third try of the quiz, the first question is shown, but after a second or two, publication (SWF and SWF-SCORM) continues to the second question.

    It has not resolved

    These things I tried:

    1. Reissue with "Force republish all slides" selected.
    2. Removing all the Question slides in the project and recreate them from scratch.

    Can someone help me with this?

    Best regards

    Dieter

    I have heard some evidence that you should never set quiz question slides less than 3 seconds in length.

    Try to make all the quiz questions about 3 seconds with the break point to 1.5 seconds and see if it improves the problem.

    Another request: do you have removed or replaced one of the elements by default question slide as the legend of the Question title or caption of the Question text? If so, which can also cause behaviors glitch.  You will need to delete questions that you have changed this way and replace them with quiz question slides.

  • Creation of the second issue of a magazine iPad

    The first question is therefore ready to go on iTunes and approved by Apple...

    When I come to the second question, I'm a little unsure of the generating process viewer - can anyone help?

    So my first question is charged as long as:

    ----

    Name of the observer: design every month

    Type of Viewer: several questions

    Title (display of the library): Design Magazine monthly

    ----

    How can I specify the second question?

    I guess it's:

    ----

    Name of the observer: design every month

    Type of Viewer: integrated unique number

    ----

    Is this correct?

    Also, how turn on kiosk software change things (or even at all)? That is specified in the first issue as "Multi-probleme with iTunes subscription?

    No, this is not correct. You do not use the constructor of the Viewer to create the second issue of your magazine. You use the same Adobe ID you used to create the application (the 'Adobe ID for title' option) for you connect to the Folio Builder Panel and you create a new folio. When you publish this new folio, it appears as a new question in your viewer application.

    For your customers, allowing the application of booth means they'll run your viewer using the device of newsstand and questions will be downloaded in the background. For you, this means that you will need to create an app for the subscription set up push notifications (if you have not already done so) and resubmit your viewer to Apple. See the ipad edition companion guide on the dashboard for more details.

  • OUT OF THE BOX QUESTION C60

    Anyone know if the same firmware is installed in sw1 and sw2 on a C60 out of the box?

    SECOND QUESTION: what happens if none is the process to factory reset a C Series codec if for some reason, unable to use the serial port?

    Thank you.

    Hello

    Only one of the memory banks must be populated with a version of the software out of the box.

    The second question depends on which codec C series you mean. C20 can be hard reset (power button sequence) while C40, C60 and C90 cannot and must be done either through web series, touch, telnet or ssh where each of them except series requires a network connection.

    / Magnus

  • I am a user of Picasa for a long time conversion to Lightroom.  I share photos with dropbox on a MAC, a Windows computers, storing images and the catalog in dropbox.  I'm able to share the LR catalog, but on the second system images can be found as s

    I am a user of Picasa for a long time conversion to Lightroom. I share photos with dropbox on a MAC, a Windows computers, storing images and the catalog in dropbox. I'm able to share the LR catalog, but on the second system images can be found as a prefix system DB files have different user names. Any ideas?

    At the point of Lightroom to another location for photos, follow these instructions:

    http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm

    Note: If the catalog is constantly being synchronized to DropBox, you will most likely follow these instructions whenever you open the catalog on another computer.

  • Distiller will suddenly end/crash the * SECOND * time I open a file for conversion to PDF.

    The subject says it all: Distiller will suddenly end/crash the * SECOND * time I open a file for conversion to PDF.

    But I think I have an idea why this is happening. In general, I use Distiller to convert EPS or PS files as PDF files. In addition, almost without fault, I incorporate the required (only of Type 1) fonts directly in files EPS/PS (using the required format to PFA) so no local fonts on my computer are needed to be looked at to distill in to be embedded in the file PDF. they are already in the EPS/PS files.

    But yesterday, I tried to convert EPS/PS files to PDF using Distiller in which I had NOT embedded fonts Type 1 (PFA format, of course) in the source of EPS/PS files. All first this conversion would work (in which I select "open" and choose an EPS/PS file for conversion), but after this initial conversion, the * SECOND * time I clicked "Open" the file, Distiller would immediately close/crash.

    Then, I searched the web for answers and discovered that some people have trouble distilling to initialize if all their computer system fonts were read-only. So I went back to my EPS/PS files and embedded fonts Type 1 (PFA format) required in them and then - as if by magic - distill worked without a hitch: I could open and convert any number of them in succession, with distilling never close / crashing.

    Then, I found the reason why distilling had been crashing at the second attempted to open a file (once again, simply by pressing the "open" button to find a file to convert, * no * after selecting a file) must have something to do with distilling scanning fonts installed on my computer, when there was no PFA font incorporated to make reference to , and a read only font on my system was the cause of the problem. However, I have looked in both places of logic where my fonts must be located (c:\psfonts and c:\windows\fonts), but found * no. attributes * files fonts defined in 'read only' so, I'm stumped.

    I use Distiller Pro 10.1.1316 (acrodist.exe) on a machine to earn 8.1. I found similar positions, which dates back to 2004, about Distiller crashing immediately after opening when certain fonts are read-only; I haven't found a post about anyone successfully using Distiller to convert EPS or PS to PDF and then have the program crash when the "Open" button is pressed subsequently. The clues, anyone?

    Background: Distiller Server is a product discontinued long - ago - use of Distiller server is now simply prohibited, and LiveCycle PDF Generator is available for servers.

    Since you are not using Distiller Server and this forum is essentially abandoned, I recommend that you try the Acrobat - forum creation (etc.) instead.

  • When right-clicking on a link and a window opens, I want it ask me "Open Link in New Window" first of all, not the second. This has changed in the last update.

    So I got allows you to right-click on a link and go the first option and open this link in a new window.
    I don't not like tabs, or use them.
    The latest update or version of Firefox has changed this and now
    Open the link in a new tab first, then
    Open the link in a new window.
    My question is, how can I change this back to the way it was.
    Thank you very much
    TREV

    My problem is the opposite of the OP, but the result is the same. Years of the use of previous versions of Firefox have conditioned me to open links in a new tab by selecting the second choice of right click menu without looking. After a week of trying to readjust in places reversed 'Open link in a new window' and "Open link in a new tab", I'm always unintentionally opening new windows instead of tabs every time after time. The point is, why should I have to adjust (or need a plugin external to solve your problem). YOU TEACHES ME HOW to DO THIS WAY, then why you changed it? Do you think that the reversal is most effective? A task force of new users select the new range? Do you have a taste of trial with Pepsi? Have you adopted Microsoft 'we know what you want better than you' policy? People in the drive of England on the left side of the road with the steering wheel on the right. Maybe it's actually a better way to do it. Maybe we should just rethink all cars new American model in this way and reverse all the signs from one day to the next without any warning - no ads, no choice, do it just because the engineers decided that it is better. While we're here, maybe you should adopt menu 'Ribbon' of MS then. I do sound a little angry or like if I have too much time on my hands? If so, it is because I am and I do not have enough to relearn the same tasks whenever you think of a better way to perform a basic operation. I'm sick of being 'improved' perfectly feasible programs to offers no improvement, only the need for a conversion.

  • DateTime picker - given to zero hours and minutes on the second click on the datepicker

    Hello

    (APEX 5.0.1 DB 11.2.0.3.0, operating system IBM AIX 7.1, time zone + 1 hour GMT Bratislava)

     

    we have the date picker in the form region with the date format JJ. MM YYYY HH24

    by clicking "Photo calendar" calendar appears with the date and the time displayed

    This means that you can see in "hours selector" currently and in 'selector of minutes', you can see current minutes

    You can change the date, the hour and minute you want

    by clicking on the button "Close" you get the date and time in the date field picker

    So far so good

    However,.

    If you click again on the calendar "Button photo calendar" appears and

    If your current time (I mean normally on a day) is at 09:59

    You will get Zero (0) hours in the hours, selector

    After you present is from 10:00 correct, you will get 10, 11, 12, 13, etc.

    It's for hours and minutes

    If your current time is 10 minutes, for example 08: 07 , 11: 09 , 12: 03 , etc

    On the second click, you'll get Zero (0) minutes

    Similar problem is in the format JJ. MM YYYY HH: mi where you get the 01 in selector hours until 10:00

    Will he please, focus on the fact that it is always on the second, third,... do not click on the first.

    Any ideas please?

    Kind regards.

    Hello

    It was recorded just as a default of 22376688.

    Thank you.

  • Problem to convert the format of date in place of the Second

    I'm developing an application that uses the OAF in JDeveloper.
    I spend the day of my page to a quary to filter the data.
    I used the following:

    String PresentDate = this.getOADBTransaction () .getCurrentDBDate () m:System.NET.SocketAddress.ToString ();

    However he sends a date as "2011-03-22 17:04:14.0'." If you see the second place, there a fraction as well.

    I need to convert it using TO_DATE (PresentDate, ' ' YYYY-MM-DD HH24:MI:SS)

    But because of the fraction in second place, it gives an error.

    Can someone help me solve this problem?

    Thanks and greetings

    Hawker

    Hawker,

    Instead of using...

    Calling (dateValue) does not include the time.
    SYSDATE long = transaction.getCurrentDBDate () .dateValue ();

    Kind regards
    GYAN

  • How to set up the second hard drive

    My Mac Pro has two, the hard drives of 1 TB.  I had originally planned on the use of the second hard drive for Time Machine.  However, instead of using Time Machine, I now save by cloning my first hard drive to an external hard drive using Carbon Copy Cloner.  I did not use Time Machine in a year and do not expect that I have to use more.

    My first hard drive fills up-I have about 150 GB unused on it, and with video editing I'm is squeezed.  What is the best way to configure my system so that I can use my second, now sleeping, hard drive? Is it possible of them gang up together so that my system will behave as if there is a 2 TB HDD?

    Thanks in advance.

    Yes. It is called RAID.

    For more information on how to do this, see https://www.tekrevue.com/tip/create-raid-el-capitan/

  • iOS 10 - How do I get the clock to display the seconds?

    Recently updated my iPhone iOS 10.0.1 6s.

    After a power failure, I was re-creation of different clocks and discovered that the "Clock" Apple app displays more seconds in the "WorldClock" pane In addition, I can't change for the clock faces 'analog-style' in this application. The application icon has a small second hand in the home screen, but it's pretty hard to use when you try to put clocks in the second. Any thoughts?

    As far as I know, the clock of the world cannot do that, which is a pity. I wonder why they decided to remove it. Perhaps he used too much energy to the battery?

    Thank you for pointing out that the application icon displays the seconds hand, I never noticed that before.

    It is discussed by the Parliament, but the only solution which they suggest is to get an application:

    in the new iso standard 10 analog world clock update?

  • 2012 MacBook Pro renovated migrated 8/20, screen has blacked out for the second time

    can not force stop with long hold on the power button / stop. The first time was in the second day of use, after all the updates from app store. Screen was back the next morning. 4 GB of ram, mid-2012, os 10.11.6.

    I have the same PBM and had a similar problem. One day I went to turn on my MBP and the screen was black.

    It was seems to be dead. The screen was not lit. I tried the Mini external display port with a television by HDMI cable and adapter screen.

    https://www.Amazon.com/Sabrent-DisplayPort-Thunderbolt-adapter-da-MDHA/DP/B017NK IQ8M/ref = sr_1_5? ie = UTF8 & qid = 1471973756 & sr = 8-5 & keywords = + mini displayport + to + hdmi + 4 k

    And the macbook worked fine with the TV. TV display showed MBP display very well.

    This led me to believe that there is just something wrong with my screen LED on the MBP.

    So I opened the back cover of the MBP and looked inside.

    I saw the cable that connects the screen LED MBP to motherboard and disconnected it and then reinstall it.

    I then closed the MBP and restarted.

    IS!... LED MBP display worked again. If the problem was simply that the cable of the LED screen did not have a good connection. So, just to be disconnected and reconnected to make good contact.

    This maybe off topic but it's worth a try. It may be your screen LED cable which does not have a good contact.

  • How can I configure on a second two-factor authentication apple that isn't an icloud but rather my itunes account account ID? Only, I seem to be able to use two steps on the second account.

    How can I configure on a second two-factor authentication apple that isn't an icloud but rather my itunes account account ID? Only, I seem to be able to use two steps on the second account.

    You can not. Two Apple factor authentication is a feature of iOS and OS X, based on your AppleID being associated with iCloud account to send and receive authentication 6-digit codes. An AppleID that is not associated with iCloud account cannot be used for 2-factor authentication.

    For Apple ID - Apple Support two-factor authentication

    You can set up validation in 2 steps (which is different) with any AppleID - see frequently asked questions about check in two steps for Apple ID - Apple Support

Maybe you are looking for

  • How can I prevent the Satellite to sleep when the lid is closed?

    Hello I connected my Toshiba with an external HDMI monitor.The problem is that when I close the lid (I chose the monitors in dual options) instead of sending output to the screen external, portable sleeps. How can I stop the laptop to sleep when the

  • Satellite C650 saves - Toshiba DVD creator - but does not check

    I have a Toshiba Satellite C650 bought in 2010 with Windows 7. I use pre-installed "Toshiba DVD creator" to record stuff. Recently, every time I burn a DVD (saving options: all the veryfing and close DVD), save it, but when he supposed to begin the p

  • How to change the background color of a text indicator?

    I have an ASCII/text indicator on my FP. FP uses a .png file as the background, with a block diagram. The diagram is a white background with lines black, figures, etc. I wish I could change the background color of the indicator of ASCII text / to whi

  • no connection at startup option

    There's not a connection option user at the windows login screen.  When the computer starts first to the top, it starts normally and comes to the login screen.  Generally I would just click on the user name and the windows would load.  Then, I added

  • Z10 blackBerry which is "status of IMS '?

    Greetings, When I tap Settings > network and connections, it is said that my 'IMS status' is disconnected. What is IMS articles? Thank you Shane.