Problems of substr (Number)

Hi all!

I had a problem and do not understand why of course program could do to avoid the error, but I understand.

Run the following script to the v_temp value is incorect (03:0) but for the value of v_temp2 is correct(12:12) WHY?

Helpful and answers guaranteed

DECLARE 
v_temp NUMBER(12) :='080120141030';
v_temp2 NUMBER(12):='281120131212';
v_temp_v VARCHAR2(50);
 FUNCTION extract_hhmm(p_num NUMBER)
    RETURN VARCHAR2 AS
    v_tmp VARCHAR(5) :=NULL;
    BEGIN
      IF LENGTH(p_num) > 8 THEN 
         v_tmp := SUBSTR(p_num,9,2)||':'||SUBSTR(p_num,11,2);
      ELSE
         v_tmp := NULL;   
      END IF;
      RETURN v_tmp;
      EXCEPTION WHEN OTHERS THEN 
      RETURN NULL; 
    END extract_hhmm;
    
BEGIN 


v_temp_v:=extract_hhmm(v_temp);
dbms_output.put_line(v_temp_v);
v_temp_v:=extract_hhmm(v_temp2);
dbms_output.put_line(v_temp_v);
END;


/*
OUTPUT WHY ?
03:0
12:12


*/

Hello

Simply because there is an implicit conversion taking place here. p_num is implicitly converted to number first, and then to varchar2, then ' 080120141030 'becomes 80120141030 and then ' 80120141030'.

The zero was automatically cut. For v_temp2, it's that there is no such zero non significant.

Tags: Database

Similar Questions

  • Unable to contact the Service Adobe, I have a problem with the number.

    Hello

    I would like to have more information about the Adobe domain controller. My intention is to buy the product and use it in my office, we are a small company (4 PCs).

    If I am wrong, I have to take the standard networks for Business Plan, but I can't organize any request for payment for more information, because I don't have a problem with the number I'm supposed to call.

    Y at - it another way to know if this software is very suitable for me and my business and most of all the how much it will cost.

    Thank you for your attention.

    Good day!

    I look forward to hear from you.

    Best,

    Augusto

    Hi Avgvstvs67,

    Please see this link: https://acrobat.adobe.com/in/en/pricing/business-pricing.html

    Kind regards

    Rahul

  • Problem with the number of lines in the channel

    Dear community LabView,

    I'm relatively new to labview and I came across a problem that (I assume) can easily be resolved with your help.

    I need to create a digital signal to trigger a camera, but I have a problem with the configuration of my lines or exit lanes. I would not use that line output to trigger the camera. (I use a card NI PCIe-6353). LabVIEW is telling me that the number of lines in the channel does not have the number of rows of data:

    Possible reasons:

    Specified read or write operation failed because the number of rows in the data of a string is not the lines in the channel.

    If you use the digital waveform data type, make sure that the number of lines in the digital waveforms is the number of lines in the channel. If you are using Boolean data, make sure that the dimension of the array for the rows of the data is the number of lines in the channel.

    Number of lines in the channel: 1
    Number of data lines: 2

    Task name: _unnamedTask<11>

    How and why the number of data rows is connected to the resolution of my analog digital converter?

    I would appreciate your help! Labview code and a screenshot attached.

    Thank you

    Beff

    I got it to work by changing the "data format" "binary not signed" OR by plugging is not the "offset" for the Square Wave VI.  I think that the default "offset binary" data format works correctly if there is a negative value.

  • "The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. ["Error number: 0 x 80244019"]

    I have a widows xp, I reinstalled the system recovery, but seeing a message 'the site has encountered a problem and cannot display the page you are trying to view... ["Error number: 0 x 80244019"]

    I try many time but nothig is working

    HI Monica Alexandra cifuentes,.

    Windows update no longer works for systems with SP2 or less. To check your systems service pack level, click on Start, run and type Winver in the Run dialog box. If your system does not already have Windows XP SP3 installed, download and install XP SP3 from the link below. (Ignore warnings about professionals of computing and network facilities).

    Windows XP SP3.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=24

    Windows XP SP2. (According to THE level of SP)

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=28

    Note:
    If your system has a Processor AMD, download and install before installation of the SP3 of XP, the Upgrade utility Microsoft for processors not intel

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?CC=UK&LC=en&softwareitem=PV-60484-2

    If you encounter problems installing XP SP3, you can refer to the procedure described in the link below to resolve an installation failure.

    How to troubleshoot a SP3 Installation fails.

    http://support.Microsoft.com/kb/950718

  • HP Deskjet 1510: Duplex printing problem - an odd number of pages only

    If I print something with 8 or 12 pages or whatever (numbers) everything works perfectly.

    For odd numbers of 9 or 15, or whether, it becomes a bit like a random number generator. Page 1 is ok, but the rear where need to go 2 can be empty, could be page 4. The last page prints on the last page which must be empty.

    If I have a 9 page document that I can choose pages 1-8 and then separately just print 9 and it works well.

    Hey @terry6,

    I see you have some problems with the printing of your Windows Vista computer to your Deskjet 1510. Now, a printer only prints what the computer told him to print, but I can help you find the problem on your PC.
     
    Here's what we will do:

    1. Turn the printer off.
    2. Close all programs on your PC.
    3. Open your control panel, and then printers and faxes.
    4. Right click on the image to the printer.
    5. Click on remove the instrument.
    6. Repeat if you have copies of your Deskjet 1510 listed.
    7. Turn on the printer.
    8. If the printer does not appear in this window after you turn on the printer and wait a few minutes and then click Add a printer up.
    9. Follow the prompts to add the printer to the back.
    10. Try to print again.

    This should fix your problem with printing pages in the right order. If it does not then try the following:

    1. Uninstall and reinstall the printer.
    2. Uninstall and reinstall the software, you are printing from.
    3. Try another program.

    If he let so please other users know by clicking on accept as Solution below my post. Even if you have any other questions please let me know.

    I hope this helps and I hope you have a great weekend!

  • Windows Mail problem sending - error number: 0x800CCC0E

    This is the error message I get:

    The connection to the server has failed. Are subject: reports, account: 'pop.earthlink.net', server: 'smtpauth.earthlink.net', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 10060, error number: 0x800CCC0E

    There is no problem with the mail receiver.

    Thank you.

    new windows mail acct, cannot send mail
    http://www.Vistaheads.com/forums/Microsoft-public-Windows-Vista-mail/436626-new-Windows-Mail-ACCT-cant-send-mail.html

    What is the Error 0x800CCC0E number and how to fix it?
    http://EzineArticles.com/?what-is-error-number-0x800ccc0e-and-how-to-fix-it?&ID=2513790

    Perhaps the best way to solve your problem is to contact help and support offered by your ISP?

  • Problem with the number of files?

    Hello guys,.

    I have a problem with the compilation of some projects...

    I realize that when my project 201 records in total (including the file config.xml, Active Directory and directory ext) they do not compile.

    If I delete all the files (if the project has 200 files in total), the success of occours compilation.

    See:

    E:\BlackBerry WebWorks Plug - in Eclipse\plugins\net.rim.browser.tools.wcpc_1.5.1.201010291444-22\wcpc>bbwp.exe "C:\Documents and Settings\Softwell\Desktop\blackberryhtml5.zip".

    [INFO]                  Parsing of the command line options

    [INFO]                  Bbwp.properties analysis

    [INFO]                  Validation of archive application

    [INFO]                  The analysis of config.xml

    [INFO]                  The application of filling source

    [INFO]                  Compilation of application BlackBerry WebWorks

    java.io.IOException: cannot run program ""E:\BlackBerry"(in the"C:\DOCUME~1\Softwell\CONFIG~1\Temp\widgetGen.4723774651307629071871.tmp"directory): error = 87, Parometro incorreto CreateProcess.

    [ERROR]                 CAP exception has occurred

    Can someone help

    Hello tneil,

    Well, I found the problem and a solution.

    The thing is: my project was not limited by the size, this is the number of files (200).
    I realized that BB has released an SDK 2.0 (I used 1.5) and I tryied to compile with the 2.0 and everthing works fine!
    The problem is how bbwp.exe communicate with rapc.exe, maybe he tryies to send files by command line and it has a limit. With the new sdk, it uses a file temp with all orders. This is why it works.

    The maximum size of 7MB, I can't say anything, because my apps are about 3-4 MB. But good to know, if I can put in my documentation.

    That's all.
    CYA

  • Problem in getting number of Mobile Contact list

    Hello

    I write the code for the number of cell phone contacts list. But if there are two number (phone number, mobile phone number) in a single contact, then I'm unable and differentiate.

    BlackBerryContactList contacts = null;
            try {
                PIM pim = PIM.getInstance();
                contacts = (BlackBerryContactList) pim.openPIMList(PIM.CONTACT_LIST, PIM.READ_ONLY);
                PIMItem item = contacts.choose();
                if (item == null || !(item instanceof Contact)) {
                    return;
                }
    
    BlackBerryContact contact = (BlackBerryContact) item;
    
                int nTelNoCount = contact.countValues(BlackBerryContact.TEL);
    
                for (int i = 0; i < nTelNoCount; ++i)
    
                {
    
                    int telAttrs = contact.getAttributes(BlackBerryContact.TEL, i);
    
                    if ((telAttrs & BlackBerryContact.TEL) != 0 || contacts.isSupportedField(BlackBerryContact.ATTR_MOBILE)) {
    
                        String str;
                        Logger.out(m_strClassName,"---------3");
                        str = textbox.getText().trim();
                        if (str.equals(""))
    
                        {
    
                            String strMob = contact.getString(BlackBerryContact.TEL, i).trim();
    
                            Logger.out("InviteFriendScreen", "----------------strMo" + strMob + "--len--" + strMob.length() + "---" + strMob);
    
                            textbox.setText(strMob);
    
                        }
    
                        else if (str.indexOf((contact.getString(BlackBerryContact.TEL, i))) != -1)
    
                        {
    
                            Dialog.alert(Constants.ALERT_ENTER_DIFFERENT_NUMBER);
    
                        }
                        else
    
                        {
                            String addContact = contact.getString(BlackBerryContact.TEL, i);
                            Logger.out(m_strClassName,"---------4");
                            if (str.indexOf(addContact) == -1)
    
                            {
                                Logger.out(m_strClassName,"---------5");
                                textbox.setText(str + "," + addContact);
                            }
                        }
    
                        break;
    
    //              } else {
    //
    //                  Dialog.alert(Constants.ALERT_ADD_ONLY_MOBILE_NUMBER);
                    }
    
                }
    
            }
            catch (PIMException e)
            {
    
            }
            try
    
            {
                Logger.out(m_strClassName,"---------7");
                contacts.close();
    
            }
    
            catch (PIMException e)
    
            {
                Logger.out(m_strClassName,"---------8");
                e.printStackTrace();
    
            }
        }
    

    Now here when I added only the contact number of work and is not added and showing an alert (add only Mobile number). But if a person has mobile number and contact number of work, then that's all first showing the alert and then adding the mobile number.

    How can I solve this problem?

    Yes, I solve it...

  • Problem of serial number for CS4 Web Premium on Windows 10.

    All the programs work very well. They worked very well for months. Recently, however, whenever I start Photoshop I am prompted to enter my serial number or continue the trial version.

    When I go to enter my Web Premium serial number, it will not accept it. He tells me that the serial number is not valid.

    I tried things.

    Uninstalling and reinstalling web premium. Uninstalling and reinstalling from the trial version, same result.

    When I uninstalled, ran the cleanup tool, then reinstalled. I was prompted to enter my serial number during the installation of the Suite where it was accepted and the installation went without problems. However, when I went to open Photoshop, the configuration screen popped up again to ask and refuse my serial number.

    I ran in compatibility mode of windows 7 and 8. I run as administrator.

    When I go to the help bar to see if I can toggle the button disable is grayed out and when I go to update it says that it cannot connect to the server.

    Uninstall cs4.

    clean by using the cleaning tool cloud creative to solve installation problems

    Restart your computer

    reinstall your suite including ps using compatibility mode

  • Download problems and serial number

    I have access to Adobe Creative suit CS4, Adobe Web Design Premium CS5 and Adobe Acrobat Professional 9 for my mac. I have to restart my mac in the next few days, and I am concerned about the resettlement of these programs on my computers. CS45 and Adobe Acrobat Professional are listed in the history of my product, CC5 is not even though it came in the same package as Adobe Acrobat Professional 9. I'm not sure what I need to do to finish registering Cs5 or something else to get it to appear on my account. When I go to the help section of the any the Web Adobe Design Premium there is an option for the ID Adobe Complete/update, and when I click it need me in Adobe Services log on without completing all of the problems. There has always been a problem with the Setup program. Can anyone do anything to help me with this, so I do not lose access to my programs?

    you just need your account numbers, the installation files and a computer with compatible operating systems.

    to retrieve your serial number: https://mac-product-key-finder.com/

    You can use the appropriate link below for your installation files

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Hello together [problem of serial number items]

    I have a problem with my Adobe Premier elements and Potoshop

    I can t connect you because he of written every time serial number is activated! But I have the shure m I never log on another computer! The problem starts after the update!

    Need your help

    Pleas!

    [Title edited for clarity... MOD]

    Select a topic and then I STILL NEED HELP to activate the Photoshop elements online chat

    -http://helpx.adobe.com/contact.html?product=photoshop-elements or

    http://helpx.Adobe.com/Photoshop-elements/KB/troubleshoot-installation-Photoshop-elements-premiere.html

  • problems with serial number

    I downloaded adobe illustrator cs6 before I created an account, so I don't have a serial number. I was wondering if you can help me with this problem.

    Hello

    Please check the help below document:

    Quickly find your serial number

    In the case of the volume license product, please visit: site Web of Adobe License | Serial numbers | Orders | Accounts

    Kind regards

    Sheena

  • Problem with serial number in LR

    Hi I have to reinstall lightroom on my computer. Last year, I bought a version of lightroom, but now I can't find the executable file on my computer, I followed the suggestion of a helpdesk chat on the site which gave me the link to the trial version and che series to get the full version. This series is the same, I had in the first, now I'm tryng to adapt to this series, but the program says (English translation) "the serial number is not valid" has someboy a suggestion to solve this problem! Thanks for any answers, regarding the King!

    What version of Lightroom you bought last year?

    I guess your new download is 5.6, so you will need to have a serial number for 5.x.

    If your serial number is an earlier version, you must upgrade or download a new copy of the version to which you are licensed.

    If your license is in 5.x then it is possible, that you have been sent a link to the CC version rather than the stand-alone version.  If this is the case you need to uninstall cela a download of one of the following links instead.

    Adobe - Lightroom: For Windows: Adobe Photoshop Lightroom 5.6

    Adobe - Lightroom: For Macintosh: Adobe Photoshop Lightroom 5.6

  • Problem with a number

    Hello

    I have a number (12.3). The value of this field is as:

    1833,9

    But I need to export this information in a SQL Server database, using a PL/SQL procedure, using a link to the DB, using the following format:

    1833.9-> number (12.3)

    How can I handle this? I am trying to use

    SELECT trim (to_char(TSALIPRIX,'9999999990D000','NLS_NUMERIC_CHARACTERS=''.,'''))
    OF TST_FLOBCA_ANALIS
    WHERE nvl(TSALITRT,0) = 0
    AND ID_NUM = 1;

    So I ' 1833.9', but I have a lot of problem when I try to convert char in number, for example:

    INSERT INTO PRICES (TSALIPRIX) VALUES (SELECT trim (to_char(TSALIPRIX,'9999999990D000','NLS_NUMERIC_CHARACTERS=''.,'''))
    OF TST_FLOBCA_ANALIS
    WHERE nvl(TSALITRT,0) = 0
    AND ID_NUM = 1))

    I ORA-06502: PL/SQL: digital error or value.

    Can someone help me please?

    Thank you very much

    Hello

    If we have spaces in when converting it to the Type of number, we get also error as number not valid.

    For Ex:

    SELECT TO_NUMBER (290. 90')
    FROM DUAL;

    Then, there is no spaces, to eliminate it.

    And you say that the field is of Type Money. Oracle does not such a Type for that.

    While converting if the chain is something like this $ 290.90 CUT then it 290.90 and after conversion
    use the symbol "$" to the result.

    Thank you
    Shankar

  • Same problem of serial number, I've had with photoshop

    Hello

    Recently, I replaced my Mobo memory and CPU.

    A couple of days, I said my serial number in photoshop was used on more than 2 machines, and I had to disable one, after considering a link to a conversation with the agent screen Finally I was able to do exactly what they have helped to solve the problem.

    Now, after finding BEFORE I have the same problem and am about to that program ended after 29 days or more.

    I raised around looking for the link to the chat, myself, but even if there is a conversation with the agent the figure on the screen, it is not support bar next to him who eventually informed me that he did not have an agent. I don't want to look at the screen even when from time to time to see if someone is online and be on the wrong page.

    Can someone be so kind as to throw me the link so that I can be more confident, I'm in the right place.

    Thank you very much.

    Grenadianexpat

    Now, I see a cat now - available Agent.

    http://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

    If the problem persists with the choice of cat online look at one, maybe try a different browser.

    Please let us know the result.

    Thank you.

    RTA

Maybe you are looking for

  • IMac will not be asleep wake reason XHC1

    I used the SYS log message to get the reason wake XHC1 How can you correct reset to delete it see you soon robfromdarfield

  • Windows Vista Webcam 28 error code

    Hello, I have problems to make my webcam to work. I spoke to the manufacturer of the cam and went down to the solution that is missing a driver that should be installed after formatting my computer. I get the error code 28 when I try to install the d

  • Problems with WMP54G and different types of connections

    Good so I had originally a WPA network, but the computer that I was using this adapter could not connect to it.  When I called the help line that the woman told me that I needed to change the connection to a WEP, because of the computer being a "batt

  • Internet does not connect unless it is directly connected to the computer

    This problem occurred yesterday. Internet has suddenly stopped working. Things were going to turn power off, then on and distributed. I did check the lights on the modem and the router, but they were all working well. I have plugged on both computers

  • Do not understand why this partition by does not include a function of group

    It's the oradocsSELECT name, salary, department_id,PERCENTILE_CONT (0.5) INTRA GROUP (ORDER BY salary DESC)COURSES (PARTITION BY department_id) "Percentile_Cont."PERCENT_RANK()COURSES (PARTITION BY department_id ORDER BY salary DESC) "Percent_Rank.Em