The use of quotation marks in the parameter variable data

Hey, I have a question very confusing, I'm with headaches, already, hour I google itand nothing...

Here it goes...

1. I had a procedure that receives the ID setting

2. then, I use it to make a few requests in other tables

3. but, when I go to the query in the data element of this ID, it returns me a large amount of data which are not of this ID.

I've done some tests and I realize that when I do this:

DECLARE
V_ID VARCHAR2 (200): = 35100345580693000762550010000276180000407450;

BEGIN

FOR RS TO (SELECT * FROM TABLENAME TN WHERE TN.ID = V_ID) LOOP
INSERT INTO A1 VALUES (RS. PROD_COD, RS. (UN);
END LOOP;
COMMIT;

END;

She sends me all THE IDs!

But when I put quotes in the value, like that!

DECLARE
V_ID VARCHAR2 (200): = '35100345580693000762550010000276180000407450';

BEGIN

FOR RS TO (SELECT * FROM TABLENAME TN WHERE TN.ID = V_ID) LOOP
INSERT INTO A1 VALUES (RS. PROD_COD, RS. (UN);
END LOOP;
COMMIT;

END;

It returns the correct lines, but there is a problem, the ID will come from setting, so how can I solve this?


To be more precise, the type of the ID column is VARCHAR2 (50), maybe this might help...

Published by: Nylson on 27/04/2010 03:51

T it?

I already showed above that pass the parameter a string, it does so without rounding, but passes the parameter a large number which must be converted to a string first, you're going to get some flare at 38 s.f. going on.

You need to make sure you pass a string in your procedure, rather than a number, if you want to get your code transmitted intact. It is the only way to avoid the implicit flare.

Otherwise, could you relook at your application design - why you store these large ID in the first place? If it is a concatenation of several things, why not just break down the numbers and add them in separate columns?

Tags: Database

Similar Questions

  • The use of the repository variable date in filter expression

    Hi gurus

    I get the error using repository variable date in filter expression. I use the formula below

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end date" = VALUEOF ("month_start"))

    I am getting below error

    The formula syntax is not valid.
    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 22024] A comparison is performed between incompatible types. (HY000)
    Publ. SQL: SELECT filter (fact. Calls by using "Sun Time" ". Fiscal months end date"= VALUEOF ("month_start")) 'call DATA.

    Then I tried the below format I still get the error

    filter (with the HELP of Fact.calls"Sun Time".) "" Fiscal month end date "= DATE'(VALUEOF ("month_start"))") "

    The formula syntax is not valid.

    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 46047] DateTime (VALUEOF("month_start")) (VALUEOF("month_start")) value does not match the specified format. (HY000)

    Publ. SQL: SELECT filter (using "Sun Time" Fact.Calls. ("' Fiscal months end date" = DATE '(VALUEOF ("month_start"))') 'call DATA.

    Please let me know what I'm missing or what is the correct syntax of same using the repository of date variable.

    Thanks in advance

    Concerning

    @li

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end Date" = CAST (VALUEOF ("month_start") date))

    Try this

    mark, if this can help

  • Default for the parameter value date

    We use Oracle bi apps 7.9.5. In that when an organization dimension that we don't pass any value of loading
    setting $$ SRC_EFF_TO_DT. It is supported as on 01/01/1753. When the default value of 01/01/1753 is set?

    Is there a way we can define the parameter value globally for all dimensions in Informatica or DAC?

    01/01/1753 is Informatica's default date value. It uses this value when the parameter is passed to the parameter file and no default is mentioned in Informatica. To set the default value in Informatica, you may need to change all the mappings of one by one.

    Easy by default is to set this parameter to DAC - Design-> tab settings of the Source System. This will last for all workflows walked through the DCA during execution.

    Ash

  • Passing a value to the parameter variable

    Here is a general example (all the code):

    _Global.XPosition = {function(whichMc:MovieClip,_xStart:Number,_xEnd:Number):Void}
    new Tween (whichMc, "_x", Strong.easeOut, xStart, xEnd, 1, true);
    }

    function loadFunction(success:Boolean):Void {}
    If (success) {}
    var image01ClosedPosition:Number = this.firstChild.childNodes [0].attributes.imageChangeX;

    hit01.onRollOver = function() {}
    xPosition(img01,image01ClosedPosition,0);
    }
    }


    In the XML file, the value in the fact that I'm pulling is - 29.
    If I do a trace of imag01ClosedPosition, I get the correct value of-29.
    If I change the call to the function to read xPosition(img01,-29,0); This also works

    I can't make it work the way I have it above.
    (I know that I failed a lot, but I wanted to give you an idea of the part that does not work.)

    Thank you, kglad. I wondered about this. I thought that the setting of a variable data type: number, it would have been a number, but I never got an error in the debugger so I thought it was ok. I traced the data type and figured out it was actually a string and changed the following line which has transformed the string to an integer and does the job:

    var image01ClosedPosition:Number = parseInt (RootNode1.attributes.imageChangeX);

  • In the presentation variable date format

    Dear Guru,

    My guest has a calendar month edit box that is in the format "YYYY / MM". I put this as a variable presentation p_month.

    Now, I need to add 1 month to this presentation variable in the filter, I tried to write the sql code but it's complicated, and it does not work. Could someone help?

    Thank you very much
    Joe

    An approach more:

    using filter based on another request...

    create a query containing the following columns... (Assuming that YYYY / MM column is: A).

    Min (A)

    "and keep the filter on A > ' @{p_month}"
    Save this report with a name: RapportB

    Your main report on A filter should be like this:

    filter on a column > advanced > filter based on another request, now browse the RapportB and then to specify the unique column present in this report to be filtered...

    hope you understand this approach...

  • Where are the separate variable data stored?

    Guys,

    Nobody here knows not where are stored the data for separate variables?

    I'm doing some research in my environment to know the capacity for the application process and I need to count the use of variables separated from my database.

    Any help is appreciated.
    Kind regards
    Luiz

    Hello Luiz,

    Separate instance variables are stored in the table "PDETACHEDFIELD" of the engine.

    Dan

  • Between the problem of dates

    Hello world

    We try to get a SQL sentence for our data model, and we have 2 parameters of date as "MM-dd-yyyy".

    When we put them inside our SQL query, we saw that it needed the date as "MM-dd-yyyy HH24:mi:ss", and the HH24 Gets the value of a ' 11:00 ", so if I have a record in 11:10, or one in 10:50, it is filtered differently for the same day, depending on whether we use it in the parameter 'Start Date' or in the parameter 'End Date'.". "

    The filter in our query is like:

    'TIME' BETWEEN (: STARTDATE) AND (: ENDDATE)

    Can someone explain to me how this works exactly? because I need to get all day in the filter and is not only the half hours.

    Thank you.

    Simple thing is cast to date and use, simply go by date without taking account of the time.

  • I want to use the quotation marks in the search box

    I want to use quotation marks in the search box.

    So let's see, you try to find all the photos with the exact keyword Fotograaf: My Name

    Go to the keyword list Panel, point your mouse on the desired keyword, an arrow appears to the right, click on this button.

  • keyboard keys change symbols in red. I would like to change itself can use quotation marks and question marks instead of the capital, etc. who are now working.

    keyboard keys change the symbols in red on each key.
    I want to change back so I can use quotes and mark instead of the capital points, etc. that appears now, when I hit the SHIFT key.

    What type of computer you are using

    in what application are you facing this?
    You can also try to perform a system restore to an earlier time to check if the question
    If it's a laptop computer consult the manufacturer for help
  • Extra space after the quotation mark open

    I write fiction. I need to be able to put the dialogue in quotation marks. My problem is that when I ask speech recognition for 'Open-quote' and then start the dialogue, I get an extra space. Like this: "come with me, Jim.

    Does anyone have a solution?

    Hi DennisFoley

    My apologies for not getting back to you sooner, actually I'm surprised that no one else has offered suggestions.

    I've personally never used speech recognition, so I have a question.  I know it's maybe not the right way to "solve" the problem, but you can do it?  When you say quote open or open Double Quote, can you tell us immediately Backspace?

    If I find any useful information, I'll post it here.

    Thank you

    Ken
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Note setting out the numbers in text come into contact with quotation marks.

    Is it possible to find and replace end quotation marks and numbers exhibitor and kern them apart?  Numbers exponent of endnote in Adobe Caslon Pro come in contact with the end quotes that precede them. So any time I have a suite of number of note a quote all the numbers run right in the quotation of brand.

    Example: "quote". 4 (4 should be exposing)

    Can we do a custom search and replace with added kerning between the "and numbers?

    Thank you!

    Thank you. A trailing space is more that I wanted, but it is the smallest available space.  So he has to do. I can do a grep search and use a wildcard character for "any number" and replace it with fine space and 'found sales '.

    I tried, it works!

  • What is the difference between single quotation mark (') and double quote ("")?

    What is the difference between single quotation mark (') and double quote ("") in reports using SQL. When you use "xxx" and "xxx"? What is the difference of two of them?

    Thank you.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e10592/sql_elements008.htm#SQLRF51129
    http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e10472/fundamentals.htm#LNPLS199

    Edit

    What is the difference of two of them?

    In fact: it is better to simply forget double quotes ;)

    Published by: hoek on October 23, 2009 21:22

  • How to escape the quotation mark?

    I need to move a column of link from page 1 to page 2. I found a bug in my program. When there is quotation mark in the string, the corresponding query cannot be displayed on page 2. However, by using the same query, I get the correct result in the SQL * more console. I don't know why. Because of the quotation mark? Thank you!

    Hello

    OK - I've updated my test page to include the date in the filter - [http://apex.oracle.com/pls/otn/f?p=267:126]. I added a new page element called P126_DATE for the date filter

    My SQL for the IR is now:

    SELECT
    ENAME BLAH,
    EMPNO,
    ENAME,
    HIREDATE
    FROM EMP
    WHERE HIREDATE IS NOT NULL
    

    The URL of the link is now:

    #" onclick="javascript:doLink(this, '#HIREDATE#');
    

    My javascript function is now:

    function doLink(o, d)
    {
     $x('P126_TEXT').value = o.innerHTML;
     $x('P126_DATE').value = d;
     doSubmit();
    }
    

    And SQL of the standard report is now:

    SELECT EMPNO, ENAME
    FROM EMP
    WHERE ENAME = :P126_TEXT
    AND TO_CHAR(HIREDATE,'DD/MM/YYYY') = :P126_DATE
    

    Note that the column HIREDATE on the IR has been formatted using JJ/MM/AAAA

    Everything seems to work very well.

    The only time I haven't had "no data" was when I had included all the records in the EMP and clicked on a link for a record that had no value of hiring date. Otherwise, clicking on any link meets the standard report ok. Have you tried using TO_CHAR or TO_DATE to ensure that both sides of the WHERE statement using the same type of data?

    Andy

  • 'Save as csv' sets of quotation marks around the entire line

    Our customer relationships:

    Portal of data-> right click on-> save under-> Select 'Data Type': "Textfile - Auto détection (*.csv)"-> Save.

    Result of savings:

    "TIME V V_ABS.
    "63.0235776 28.6153372301571 0.105263157894737".
    "63.0235936 28.6156034598028 0.105264137235745".

    The values of strings with the same index (a header) are so composed of a single cell due to quotation marks around.

    By me is not get, but by a customer.

    Client standard configuration of region/German language Windows 7.

    No idea, how a customer can save as csv without quotes around the line?

    Sasha

    Checked the file format during the recording of the data of Test File (CSV) Portal.

    When I checked the file in Ultraedit (so that can see the hexadecimal values) the file doesn't have quotation marks around the values.

    But if I open the file in Excel and then saved. Excel has put the quotes like that was indicated in your message.

    It seems that the customer opens the file in Excel.

    Paul

  • How to use the parameter B-BIS in a factory of connections

    How to use the parameter B-BIS in a factory of connections (OS 5.0)?

    I have found no no API for it.

    Maybe http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/io/transport/options/BisBOptio... ?

Maybe you are looking for

  • DeskJet 2050 J510a model, produced. CH350C

    My printer Deskjet 2050, model J510, product no. CH350C, I bought ink cartridge No. 61 because he said that its compatibility with the deskjet 2050 and the salesman said I can use it, but when I tried to print, I can't, said the printer cartridge is

  • HP pavilion dv7-6b55dx recovery disk

    Hi all I have a hp Pavilion dv7-6b55dx hard drive failed.  Fairly easy to install a new hard drive, but its been a bit more difficult to find any kind of information recovery disk.  The laptop has a hand, and we only had a very short time. Ever creat

  • Acer game launcher has stopped working

    a message saying that the games Launcher has stopped working when I try to use console games on my Acer aspire 5920G. can you help > please

  • time of my laptop and the dates change

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the problem

  • After I log in to Vista my screen turns off

    I tried everything and when I connect my vista my screen goes black and just the cursor shows.  I don't know what happened, but nothing is on my desk at all.  Any ideas?