What is with the source code of my area

I have two questions on my page
P80_From and P80_To.

I want to get the report based on these two points

Here is the code on the Regioin Source

Select c1, c2, c3 table where createdon between to_date ("' |: P80_FROM |) (', "dd/mm/yyyy")
and to_date ("' |: P80_TO |) (', "dd/mm/yyyy")

However, I had
Failed to parse the SQL query:
ORA-00907: lack of right parenthesis

What is wrong with my code?

Thank you
Jen

Published by: Jen Hu October 12, 2011 10:29

Jen Hu wrote:
I have two questions on my page
P80_From and P80_To.

I want to get the report based on these two points

Here is the code on the Regioin Source

select c1, c2, c3 from table where createdon between to_date(''' || :P80_FROM || ''',''mm/dd/yyyy'')
and to_date(''' || :P80_TO || ''',''mm/dd/yyyy'')

However, I had
Failed to parse the SQL query:
ORA-00907: lack of right parenthesis

What is wrong with my code?

Too many citations, too concatenation, possibility of SQL injection.

Correctly use the bind variable:

select c1, c2, c3
from table
where createdon between to_date(:P80_FROM,'mm/dd/yyyy') and to_date(:P80_TO,'mm/dd/yyyy')

Post all the code wrapped in ------...------wrapped in \

...\

Tags to preserve formatting and stop interpreting HTML/CSS/JavaScript forum software.

Tags: Database

Similar Questions

  • What is the relationship between the source code (LKS) file and the process file (L4P)?

    I know that Lookout produces a file of source code with an LKS extension when you save a file to process.  Can someone explain the relationship between the two files, especially while the (L4P) process is running?

    1. Is this just a backup file can be recompiled in a process file?
    2. A file corrupt LKS cause strange problems with operation process file?

    I currently have a very strange intermittent behavior with a process file run.  I first thought that the problem was associated with my Fieldpoint and/or their configuration modules.  Since then, I found that my process file has a file corrupt LKS.  I repaired and recompiled my LKS file to a new file to process.  I still don't know if I have solved the problem or not.  So, the problem is intermittent, I did that about 20-30 SECONDS to resolve the problems there before he goes.  Then he can not show up again for another 2-3 days.

    The .lks file is just the source code of your process. It can be opened by a different version of lookout, but does not have the .l4p file.

    The .lks file is not be used while a process is running. Lookout does not read the file more after his execution. So it should not affect the running process.

    What kind of problem, is it?

  • What plugin miss me when I can't hear the music on a web site that uses bgsound (html) in the source code

    I have a website I go to who's using bgsound in the source code. I can't hear the music. However, it works with internet explore

    If a site uses BGSOUND so this will only work in Internet Explorer.

    BGSOUND is not compatible with other browsers like Firefox.

  • I bought the DC of Adobe Acrobat pro and completed the info online, but when I use the cd with the product code key it will not take the code?  What do I do then?

    I bought the DC of Adobe Acrobat pro and completed the info online, but when I use the cd with the product code key it will not take the code?  What do I do then?

    Thanks Anubha Goel, final I got it to work... The serial number in the physical box that you buy in the store wasn't the number for the software.  It was the serial number in the cloud, very difficult to know when you see a serial number in the box with the Cd online.  But thanks for the reply to my post. I'll be in offline mode after clicking on answer...  Thank YOU Ana Maria

  • I want to uninstall my old CS5 Design Premium from my computer to reinstall it on another computer. What are the steps? Is there something special with the activation codes, etc.?

    I want to uninstall my old CS5 Design Premium from my computer to reinstall it on another computer. What are the steps? Is there something special with the activation codes, etc.?

    You are allowed to have two facilities enabled, so if you prefer you can keep ut on the current computer and just install it on the new as you did initially.  If you want to remove on the other machine, the first thing to do is to disable it by opening a program in the suite and by selecting help-> turn off in the top toolbar.  That's all you need to do to disable the software.  At this point if you prefer you can uninstall it if you want.

    As much as on the new nmachine, as I indicated just, just install it like you did the first time.

  • Why can't get us the source code Freelancer?

    I understand that this is probably the wrong way to go, but since I don't know any other way, so this seems the best solution currently.

    Freelancer is a 2003 game who appreciated the merits of a hosted Microsoft 'global server' for many years. This support has been removed for more than a year, have been longer. Since then, she has in fact the players, or the community of developers, which has instead created a way not no need for this global server, while keeping the same features in the game.

    Currently there is a community of developers very involved in the game, even with it's player-base down. However, while much can be done as it is, many changes to the game requires things such as to modify the main .exe of the game, goes against the General conditions and so possibly illegal. However, Microsoft has not taken action against such a thing. The only real penalty the Freelancer community met in his history of editing has been a debacle involving a modification on the Halo theme.

    So while Microsoft has essentially removed the bulk of its support for the game, he also did nothing to stop his change, something that many are grateful.

    Ultimately, however, there are many parts of the game that most wish could be changed, but can never be the nature 'hard-coded' of such a thing, where the key to change he is locked up somewhere that we either do not have the knowledge and the ability to get to.

    There has been a lot of requests for the Source Code of Freelancer, but none have materialized. I understand that this is due to a policy that it does not give the source of his games or that the questions should be directed to the developer instead maybe Microsoft. The latter is impossible because the developer was bought by Microsoft, and subsequently dissolved.

    Ultimately the question I would ask is:

    What are the reasons for not releasing the source code of Freelancer, when he happened to so many other games such as Freespace 2?

    Linkus, your name looks familiar discovery gaming community (http://www.discoverygc.com)

    ... I must comment on your closing above statement...:

    "The end is the question I want to ask: .

    What are the reasons for not releasing the source code of Freelancer, when he happened to so many other games such as Freespace 2? »

    This is incorrect, as Freespace 2 has * nothing * to do with Microsoft, it was developed by Volition, Inc. and published by Interplay.

    These companies are not divisions of Microsoft.

    A better final statement would be asked about their release the Source codes of the franchisees Mech Commander, MechWarrior and Mech assault.

    The Battletech Franchise was a substantially larger intellectual property; and yet, they released their grip on it.

    (Although FASA / Weisman have reformed as Smith and Tinker, teaming with Piranha to do a full restart of the MechWarrior series, apparently the first deadline this year.)

    Who would actually have weight in an argument as to why they won't leave a much smaller intellectual property to the modding community.

  • Security problem for the source code

    Hello guys '

    I have a question about the safety of coding. So, I know that anyone can create .jar .java or .class file.

    And my question:

    Is it possible to create the .cod file .java file? I think the best solution to save the source code uses secure obfuscator.

    Do you use the Java obfuscator? What obfuscator is the best?

    Please share your knowledge with me ' guy

    TNX'

    You would like to read the following Article:

    How to-obfuscate code in a BlackBerry application
    Article number: DB-00438

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Obfus...

    I know that a BlackBerry development company using Proguard.

  • Enter the source code before and after recompilation/crush

    Hello

    I am trying to store the source code of a program unit in a table before and after the source code "changed". I tried to do it with a BEFORE and AFTER the level scheme of UPDATE trigger, respectively, what fire for a CREATE event - both use the DBMS_METADATA. Routine GET_DDL to generate the code. The problem is that the source code that is returned by dbms_metadata.get_ddl in both triggers will return the code prior to the change, rather than after the change. Can anyone suggest how I could manage to capture the most recent/changed version of source code.

    Kind regards

    Kevin.

    CREATE OR REPLACE

    CODE_BEFORE RELAXATION

    BEFORE YOU CREATE

    WE DATABASE

    DECLARE

    CURSOR v_cur

    IS

    SELECT TEXT

    OF DBA_SOURCE

    WHERE OWNER = ora_dict_obj_owner

    AND NAME = ora_dict_obj_name

    AND TYPE = ora_dict_obj_type

    ONLINE ORDERING;

    BEGIN

    IF ora_dict_obj_type () IN

    'PROCEDURE ',.

    "FUNCTION."

    'PACKAGE ',.

    'PACKAGE BODY '.

    )

    THEN

    dbms_output.put_line ('= CODE BEFORE =');

    FOR v_rec IN v_cur LOOP

    dbms_output.put_line (v_rec. (Text);

    END LOOP;

    END IF;

    END;

    /

    CREATE OR REPLACE

    CODE_AFTER RELAXATION

    AFTER CREATE

    WE DATABASE

    DECLARE

    v_sql_text ora_name_list_t;

    V_I int;

    v_stmt CLOB.

    BEGIN

    IF ora_dict_obj_type () IN

    'PROCEDURE ',.

    "FUNCTION."

    'PACKAGE ',.

    'PACKAGE BODY '.

    )

    THEN

    V_I: = ora_sql_txt (v_sql_text);

    dbms_output.put_line ('= CODE AFTER =');

    I'm IN 1.v_i LOOP

    dbms_output.put_line (v_sql_text (i));

    v_stmt: = v_stmt | v_sql_text (i);

    END LOOP;

    END IF;

    END;

    /

    Now:

    SQL > set serveroutput on
    SQL > create or replace
    2 procedure p1
    3 is
    4 start
    5 dbms_output.put_line('original');
    6 end;
    7.
    = THE CODE FRONT =.
    = CODE AFTER =.
    create or replace
    procedure p1
    is
    Start
    dbms_o
    UTPUT.put_line ('original');
    end;

    Created procedure.

    SQL > create or replace
    2 procedure p1
    3 is
    4 start
    5 dbms_output.put_line('modified');
    6 end;
    7.
    = THE CODE FRONT =.
    procedure p1

    is

    Start

    dbms_output.put_line ('original');

    end;
    = CODE AFTER =.
    create or replace
    procedure p1
    is
    Start
    dbms_o
    UTPUT.put_line ('modified');
    end;

    Created procedure.

    SQL >

    SY.

  • Mapping of several columns in the source in 1 target with the source Excel file

    Hello

    I use to load Excel files in HFM FDM 11.1.2.1.
    In Excel, I had 3 columns that need to be mapped in 1 column target using a few rules and mappings. Forest to source file should work in all cases.

    For example,.

    Source:
    A, B AND C
    1 company 1 xxx
    2 yyy Company2
    1 Company3 zzz

    mapping for B:
    Company 1 C1
    C3 Company3

    mapping for C:
    C2 Company2

    target after confirming:
    C1
    C2
    C3

    I take data from B or C according to data in A (1 or 2).


    I found several ways to do so, but they are not perfect:

    1 map columns B and C to the correct value (#C1, C2) and use scripting conditional on a column (for value correctly mapped either column B or C).
    The problem here is that I can not break through the low PIF when B and C are mapped to values other than [none]. Can this been bypassed?

    2 use DataPump import Scripts for concatenating the sources in one column only and use the tables mapping standart on 1 column.
    The problem is that DataPump import Scripts do not work with the source files Excel. Is this correct? I could find a word in the documentation...

    3. map columns B and C [None] script well but fat on the column, as:
    If (varValues (13) = '1' and varValues (39) = "Company1")) then
    Result = "C1".
    ElseIf...

    Which is horrible, and it would be very difficult to add new mappings in the script. But it works.

    4. logical accounts. I can't use it I need to drill down.

    Could you recommend me some better way to do this simple task to work?

    It's a bit that I coded something like that in VBA, so you will need to do a bit of cleanup; However, it should get you well in a way that might work...

    Why not add a formula in the excel file, once it is downloaded? (I guess the excel file that is being loaded is not something that you could develop a formula to start?)

    on error resume next 'make sure all commands are executed.  If something happens in code and file is open, we don't want to leave it open...
    
    Set objExcel = CreateObject("Excel.Application")
    Set objWorkbook = objExcel.Workbooks.Open("")
    Set objworkSheet = objWorkbook.Sheets("")      'OR you could use ordinal
    
    objExcel.Application.DisplayAlerts = False
    objExcel.Application.Visible = false
    
    for x = 1 to 100   'I'm just doing a loop for the sake of doing a loop.  You might want to loop through rows and for each row that has a
          'value in col A, make the formula and then break out of loop so you don't add a metric ton of unnecessary formulas
        objworksheet.Cells(x, "C").Formula = "=A" & x & " + B" & x      'i.e. =A1+B1
    next 
    
    'Save the changes
    objWorkbook.Save 
    
    'Close the workbook
    objWorkbook.Close
    
    'Quit application  (important)
    objworksheet = nothing
    objworkbook = nothing
    objExcel.Application.Quit
    objexcel = nothing
    

    NOTE: Microsoft DOES NOT officially support office (i.e. what we do above and what of FDM backstage I guess) seems to work very well, but in most cases, etc.. Be careful about cleaning to ensure that all memory is released and that the instance of excel stops.

  • < br > tag in live code, but not in the source code

    I'm having a problem with my form such that there is a huge gap between my section break and my table below.  The source code to this article looks like this:

    < div class = "right" > < / div >

    < class li = "section_break" >

    < /li > < /ul >

    < name of the form 'Form' = >

    < table width = "470" id = "Orders" border = "0" >

    < tr align = "left" valign = "top" >

    < td > < class = "description" label for = "element_6" > size < / label >

    However, my direct code at the same location shows something in a different way:

    < div class = "right" > < / div >

    < /li > < class li = "section_break" >

    < /li > < /ul >

    < br > < br > < br > < br > < br > < br > < table width = "470" id = "Orders" border = "0" >

    < tbody > < tr align = "left" valign = "top" >

    < td > < class = "description" label for = "element_6" > size < / label >

    I've no idea how out the < br > tags and they have to go.  Any help is greatly appreciated. Thank you!

    In your original code, you have a lot of
    Tags in the meantime andtags that belong here (see below). Go through the code of the table and get rid of them, 5 in total I think. Also, you cannot nest a

    in one. You start with an opening
    and only close together at the end of the page. What sort and it will get a little better.


           


     
       




       

  • Mysterious &lt; br &gt; tag in live code, and not in the source code

    I have a problem here, as mentioned above, with ma page Web.  When you go to this link:

    www.tsohngyun.com

    you will find a space perfectly size between menu horizontal blue and red background that lines on two images (image of the handshake, 'Welcome to the Master Insurance Agency' image).  When I look at to inspect the Web site in Dreamweaver in live code, I noticed a < br > tag sitting just before the tag of table containing the red background.  However, when I go back to the source code, the < br > tag is not found by the opening table tag.

    How can I change something that is not in the source code?  I want to get rid of this gap! Help, please!

    And this
    tag does not exist in the source code of your Dreamweaver? Really?  Because it is based on what I see in your code, you
    Tags on line 31, line 35, line 42, line 45 and 49 of your code line.

    Dreamweaver in code and design split view and see if you can spot the
    tags in your code (can even use useful tool to search and replace in Dreamweaver to find each istance of the)
    tag in your code.) Now, not all of the
    the tags are innapropriate so don't remove them just good willy nilly.

    In any case, hope this helps.

  • Where can I see the source code for the controller

    Hi all

    My question is maybe stupid to some gurus of the ADF, but many people have found that R12 Pages have a lot of code and there is not too much documentation on how to customize a controller.

    1. I see the *.class of my controller in the $JAVA_TOP/oracle/apps/ar/cusstd/createcus/webui/ArCreCusCO.class on my server, BUT I don't see that any of the encrypted code when I open up JDeveloper. So I guess I'm doing it wrong.

    2. I want to change ArCreCusCO.class. I see a lot of people say Hey I've customized XYZ controller, but how they found the code and continue to change it is the least of my headaches

    3. do I need to configure something in JDeveloper so I can see Server classes to my JDeveloper - what they do, if so, how you do?

    4. I saw something in the help page saying adding components to the Extension of the OA the devil what?

    Thanks to illuminate some beginners in the ADF.

    With the new philosophy of Java, some of those 12 developers experience that we are not starting from zero because of this new architecture.

    Hector. -.

    p.s. any entry will be taken, but do not refer to the Oracle tutorial, is an example of cake I need some practical examples ;-)

    Hi hbono99

    (1.) you can .class c above java, which is the compiled code as source code is not provided by oracle, if you need this file '.class' to see the source code for decompile, JAD decompiler 1.5.8 version will be newer .well, it would be useful to see the source code, but sometimes decompiled class create problems when trying to compile again.

    2.), you can make changes in the ArCreCusCO.class after that decompilation and compile the same thing again to generate the class file, bcz you can put only class file on the server, BUT that would be fatal to change the standard class and the concept here to come of the Extension in the image, you need to extend this class. «XYZ custom "means the extesión of the class parent and make the extension u don't need not the source.»

    3.) u cannot see the source code of a .class in Jdeveloper, there is no such a parameter.

    (4.) to extend the need to ArCreCusCO.class you to create a workspace followed by creating a project in the workspace Jdeveloper
    process to extend the class

    a.) create workspace and project
    (b) create the same package in which resides the ArCreCusCO.class under the \jdev\myprojects\ in your Jdeveloper
    (c.) right click on the project, go to create the new class, here you will find the option to metion the package where you want to put the superior (normal package starts with a xx.oracle.-) the possibility of mentioning the nmae classs that you want to extend
    (d.) click ok at the end, you will get your extended class

    e.) source code usually has two methods ProcessFormRequest and processRequest, you can add the code according to the requirement.

    extension works bcz inside the method she calls super, so all first it runs all the methods of the parent class in your case ArCreCusCO.class and then control comes in extended class, now, your code will be run, which will be accomliseh your condition

    f.) tranaser the class file file expanded to the server, add this extended class with seeded page you need to customize the page, you will find the option to add your class, mention u your class with package to compete (the way that we import the file with their package names in our source code, here import is not necessary)

    thanx

    Pratap

  • Link to the source code for the module does not

    I followed this link: https://addons.mozilla.org/en-US/firefox/addon/sabnzbdfox/?src=search (with download of the source) and got a '404 error' (https://addons.mozilla.org/en-US/firefox/files/browse/76042/)

    Find the source code in another place, and when I do, how I update the broken link?

    Hello

    You can also try after some time. To search for possible temporary network problems please see: http://status.mozilla.com/

    Also, if the problem persists, try the link in a new profile.

    Profiles Howto

  • Home Vista premium: KB978338 fails with the error code 80004005

    Cannot install other updates windows update screws. Impossible to find answers to this specific problem, all the links seem to point to XP or windows 7

    Went to the Microsoft site and just tried to download and install just the fix KB978338, watched as she worked, system has rebooted with what looked like 266/266/registry component machine appearing on the screen just after the message of the HP bios and just before loading windows.  The PC then realized... Updates not configured correctly - returning changes.

    Seem to be stuck in this loop that KB978338 will not install and stops all other updates installation as all fails with the error code 800F0826.

    Hi gbislay,

    I think that you are able to get on the desktop after changes have been restored.

    Step 1: Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    Step 2: Download and run the system update tool. This tool runs an ad hoc analysis of inconsistencies that might prevent future maintenance operations.

    The system update tool

     

    Step 3: Clean boot the computer

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Important: n ' forget not to put the computer to follow normal start-up step 7 in the link.

    Step 4: Disconnect all external devices (printers, scanner, USB (universal serial bus) readers, etc...) Except the mouse and keyboard and then try to install the updates.

    You can see the steps outlined in the article below, which deals with a similar question

    Windows Update error 800f0826

    The update is not installed successfully, you receive a message, and the computer restarts when you try to install an update in Windows Vista and Windows 7

    Service pack Windows Vista and Windows Server 2008 install fails with error 0x80004005

     

    Note: Steps to solve the problem of Windows Update for Windows 7 is valid for Windows Vista.

    Thanks and greetings
    Ajay K

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

  • KB2183416 Windows Update for IE8 repeatedly fails with the error code "WindowsUpdate_8007371C" "WindowsUpdate_dt000"

    KB2183416 Windows Update for IE8 repeatedly fails with the error code "WindowsUpdate_8007371C" "WindowsUpdate_dt000"

    Whenever I run this update, it seems that it installs about 90% of the way but then stops and breaks down about 20 seconds later.  If someone else sees this problem and is at - it a solution?  I'm running Vista Home Premium SP2 and KB2183461 is listed as a critical update for my system.  Help?

    Preliminary stage: If the Tea Timer of Spybot is enabled, please disabled until we finished this thread. Seehttp://aumha.net/viewtopic.php?f=26&t=32409

    Tip: If you don't fully understand what Tea Timer does and how it does, leave it disabled permanently.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    McAfee applications (and Norton) are known for not not upgrade (or uninstall) "clean". If you have McAfee Security Center installed since you bought the computer, he is been updated (automatically) several times. Try the following:

    1. run this triple McAfee fix: http://service.mcafee.com/FAQDocument.aspx?id=TS100507

    2. after reinstallation of McAfee Security Center to step #3 patch triple, manually & repeatedly updated McAfee Security Center until you get one invite "no updates more".

    3. OPTIONAL: If you have had problems with IE8, open IE8 (only) to http://support.microsoft.com/kb/923737 & run the difficulty.

    4. OPTIONAL STEP: Open IE8 (only) to http://support.microsoft.com/kb/971058 & run the difficulty by DEFAULT inside and modes and AGGRESSIVE. [1]

    5 restart and test by launching a manual check of updates & see if KB2183461 now installs. See...

    How will I know if my computer is up to date?
    http://Windows.Microsoft.com/en-us/Windows-Vista/how-can-I-tell-if-my-computer-is-up-to-date

    ~~~~~~~~~~~~~~~~~~~~~~~~
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will remove your update history but not list the updates installed in Add/Remove Programs (Windows XP) or updates installed (Vista & Win7).

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

Maybe you are looking for

  • Installed the RC on Satellite L40 Satellite

    Updated to Vista Home Premium RC - everything seems to work very well. I have already upgraded the RAM to 2 GB.RC also seems to be much less disk space than Vista... Thought I'd share this...

  • Want to m6-1205dx: update the BIOS Hp envy

    Does anyone know what is the last update of the BIOS for Hp Envy M6-1205dx? I looked, but there seems to be no new updates. I'm not no more updates for my drivers. Win10 64Bitt A10-4600APU AMD 6GBRAM

  • Field will not be centered when the text adjusts

    I have a centered LabelField.  It works fine until the text is too long.  It envelops like I want it, but the center alignment is lost.  I also tried a RichTextField without success.  Any ideas? GridFieldManager gfmTop = new GridFieldManager(2,0);sup

  • Windows 8 will not be closed

    I have been using Windows 8 for awhile now. Why can't I shut down my computer? I go into settings, then tap the power and picked off, but nothing happens. Can someone tell me why?

  • vCenter single sign on - condition password is wrong or empty

    I'm moving my SSO 5.1 U2, but when I ran the wizard and go to vcenter single sign-on infoIts saying the password supplied is incorrect or emptyany idea?I'm am to connect to the web client asadmin@system-domainwith the same password