help understand the code

Hi all

I appreciate if someone guide me to understand the following code in red...

Code

CREATE OR REPLACE

PROCEDURE plch_show_one_col)

id_in IN pl_ch_employees.employee_id%TYPE,

col_in IN VARCHAR2)

IS

l_value VARCHAR2 (100);

BEGIN

EXECUTE IMMEDIATE 'select ' | col_in | "of pl_ch_employees where employee_id =: id' INTO l_value USING id_in;

dbms_output.put_line (l_value);

END;

-------------------------

Maybe

create or replace function emp_show_one_col (id_in emp.empno%type,col_in varchar2) return varchar2 is

the_sql varchar2 (500);

ret_val varchar2 (100);

Start

Select "select" |

data_type case when 'VARCHAR2' then col_in

When "NUMBER" then ' to_char (' | col_in |) ')'

When 'DATE' then ' to_char (' | col_in |) 'fmMonth ddth, yyyy")'

another "unexpected data type".

end | ' ' ||

col_in |

' from emp where empno =: id '.

in the_sql

of user_tab_cols

where table_name = 'EMP '.

and column_name = dbms_assert.simple_sql_name (upper (col_in));

execute immediate the_sql in ret_val using id_in;

return ret_val;

end;

Select emp_show_one_col(7900,'ename') double column_val

COLUMN_VAL
JAMES

Select emp_show_one_col(7900,'sal') double column_val

COLUMN_VAL
950

Select emp_show_one_col(7900,'hiredate') double column_val

COLUMN_VAL
December 3, 1981

Select emp_show_one_col(7900,'abracadabra') double column_val

COLUMN_VAL
-

Select emp_show_one_col (7900,' salvation 'or 1 = 1-') double column_val

ORA-44003: invalid SQL name

Concerning

Etbin

Tags: Database

Similar Questions

  • Need help to understand the code


    Hi all

    I was reading an article related to fill the list item, but I don't get some codes (see the code in red), I really appreciate if someone explain it to me.

    Thanks in advance

    link real =Oracle application development: how to dynamically populate a Pop list?

    Code

    DECLARE

    group_id RecordGroup;

    GroupName varchar2 (10): = 'abc ';

    status NUMBER;

    BEGIN

    group_id: = find_group (group_name);

    If not id_null (group_id) then

    delete_group (group_id);

    end if;

    group_id: = Create_Group_From_Query (groupname, 'select DNAME, TO_CHAR (DEPTNO) Department');

    / * Select statement must have two column * /.

    status: = Populate_Group (group_id);

    Populate_List('DUMMY.) TXT_LIST', group_id);

    END;

    Concerning

    Line

    POPULATE_GROUP is a function (not a procedure) and must be called in this way.

    State could be verified - see forms help:

    "After a successful query, POPULATE_GROUP returns a 0 (zero)."

    Kind regards

    Zlatko

  • I understand the code, but I feel lost in AS3

    OK guys so first sorry for the display of this message which is not really RELEVANT in coding or something but I need your help.

    I'm learning AS 3 with Adobe flash CS6 and I was home for a week, but I tried before FlashDevellop.

    My problem is that I'm COMPLETELY lost. I understand some code (variables, table, conditionnals, logical operators, event handling in some measure etc...) and I literally (yes I did) followed EACH tutorial that was the later page of google for searches like "How to code in AS3 for flash CS6" or things like that. But I feel lost.

    Tutorials you will say to use images and don't even speak of classes, like everything that could be done with only images on the timeline and the code in frames. Others don't even talk about classes and tell you what can be done with the code in an image

    What I'm trying to say is that: making games seems really fun and coding doesn't seem THAT hard (I just search for name of functions or events on the web when I'm not sure because I just started)

    But sometimes I don't understand what I got wrong, or what I would do indeed at any given time. What should I use, and well yes I have no idea.

    I'm doing a bit of flash game as Elona Shooter (http://www.kongregate.com/fr/games/noanoa/elona-shooter), but more simple than this ofc. Just a basic for my first.

    I would say a little bit more like this: http://armorgames.com/play/4964/

    But Idk, at first I thought that I could do with the little knowledge that I have and the internet, but I messed up with my classes, there are some things that I have no idea how do.

    Like adding noise, I really know how to do with images, but I don't know how using classes, and I started to make the game with only the classes so should I switch to the framework? Or I can use both?

    If you have a GOOD tutorial, as one who not only explains the code but how it ALL works, it would be SO great love.

    Once again sorry to post this text disorganized. It's just that I don't know if it's just me having a lot of trouble with such a simple coding language, or if there is really a lot of things to consider.

    Thank you very much for reading if you did haha, and you have an answer, please share .

    There are many things to take into account.  I don't think it's a matter of AS3 being a simple coding language... the simplicity of coding/languages are compared to the experience of the user... for some, it might come easy, now, but it didn't come without a lot of the suffering that you seem to be enduring.  You seem to actually like you are coming along very well.

    I doubt that it is a tutorial all encompassing fact to satisfy your request.  Most of the tutorial topics will focus on specific aspects.  If you want to learn how to work with sound in form of code, then look in the tutorials for the Sound class... search Google using 'His tutorial AS3' and I bet that there will be a lot of short and sweet lessons available for you to work through and draw lessons.

  • Help with the code if possible.

    Hi again = D adobe community!

    IM VERY new flash, but have been crocheted line and weighed after trying to make my own game! I learned a lot (in my mind) in the short time I've been using flash. But like any new person I need a hand every once in a while ...

    And im stuck so I think I might need a lot of help (then again im new would be too difficult to grasp)... but we shall see.

    OK, I looked everywhere on the internet for a tutorial or a guide or a little info on an inventory system that works with the mouse and not crash.

    everywhere wherever I look I find guide on how to do these inventorys of collision, but nothing like the one I'm after.

    OK so I have _global.bottleofwater = 0; like my var.

    I also added the element of water bottle, which gives the code

    on (release) {}

    _Global.bottleofwater += 1;

    }

    But outside the flash registration I indeed had a bottle of water id also like to appear in my inventory. I tried to give him just a dynamic textbox(that worked), but then I wanted to make a usable item and not only a key to enable me to move to a new setting... so I tried to make the dynamic box a button, whereas if I click on the box it would consume the bottle of water (except of course the amount 0)... who did not flash mx unfortunate... he launched my game without error... but when I mouse over My dynamic box (which is also a button), overall the program crashes.

    Please any help!

    IM using Flash MX and I am VERY new so please answers to understand I'm new and I'm learning.

    It's good that you worked on it!... because there is nothing in the code you showed would break a file.

  • help understand the digital and graphical waveforms

    Can someone explain to me how digital waveform working with NOR?

    I did a channel physical and wired to a DAQMx create channel then I have it connected to a NSamp of 1Chan ereading Wfm DAQMx and then wired it to a graph of digital waveforms.

    I put digital and graphical digital waveform playback in a loop.

    When I run it, it seems to me only to get 1 sample on the graph per loop iteration.

    The desired output is to add each digital sample as a function of delay which can connected and or scrolls in time to examine what is happening with the signals.

    Where is my mistake?

    My VI is attached.

    Any help would be greatly appreciated!

    Also another quick question, is there a 'comment' as a command / / c or ' in VB?  Thank you.

    Hi Henry,.

    Thanks for the post! It seems that you are having problems with the acquisition and the graphic representation of digital data using DAQmx and LabVIEW. You are right that the type of program you have returned a single sample every loop iteration, because you make an acquisition without buffer, timed by the software. This means that the program reads a sample for each channel, whenever the DAQmx reading VI is called, which will depend on the speed of the software will run. In addition, when you view this data, the chart will only display data acquired for this iteration of the loop (that is, in this case, a single sample).

    To accomplish what you want will take some extra work and overhead costs in the software, but you can essentially use a shift register and accumulate samples that your program runs. There is a practice done just VI to do this kind of thing with digital signals and is called DWDT Append Digital Signals.vi (this can be found in the palette of functions in respect of programming"Wfm Digital Waveform"). I created a small example which you should be able to run that does this. What actually happens is that the waveform is rewritten each time with new data added in addition to the data passed in. To be able to scroll back and view this data, I turned off automatic scale on the x axis (if it is enabled, it will constantly increase and tries to show all the data at the same time) and selected just a data window to display. In addition, I added a horizontal scroll bar to scroll through the review data.

    And to answer your question about the code comments in LabVIEW, this can be done with a clear Structure of the diagram. You will find this structure in your palette of functions in respect of programming' Structures. Using this structure, you can select a part of your block diagram to disable and switch to the active state of wire through the or add different features that will run. Hope this helps and good luck!

  • Help understand the licenses IPT

    Hello

    This is the first time I posted something on this bare with me if I did this wrong.

    I am currently studying for my CCNA Collaboration and 1 question, I tend to have is to understand the difference between the licenses for example base Standard, improved, enhanced +, etc.)

    Could someone point me in the directions or help with a table/chart form each license, please?

    Thanks in advance

    Hi Shane,

    Some useful links

    http://www.Cisco.com/c/en/us/TD/docs/voice_ip_comm/CUCM/Admin/10_0_1/CCM...

    http://www.Cisco.com/c/en/us/support/docs/voice-unified-communications/u...

    HTH

    Manish

  • Unable to understand the code output

    Hi all

    I was reading one of the codes and unable to understand its outcome, I'm really grateful if someone guide me to understand. Thanks in advance.

    Code example

    create or replace package Mp_pkg

    IS

    P_nn TYPE TABLE IS NUMBER

    INDEX BY VARCHAR2 (10);

    END;

    ----------------

    DECLARE

    l_numbers Mp_pkg.p_nn;

    Start

    FOR indx IN 1... 50

    loop

    (indx) l_numbers: = indx;

    END loop;

    dbms_output.put_line (l_numbers. (Last);

    END;

    ----------

    Result

    9

    -----------

    According to my understanding, result should be 50 because the last value of l_number is 50...

    Please guide...


    Hello

    As John said, the VARCHAR2 '9 ' (or any string '9') is longer than the string of 50', for the same reason that the string 'Z' is longer than the string "THE".

    What do we mean when we say this string x is greater than string y?  We mean that

    1. The 1 x chraracter comes after the 1st character of y (in sort order), or, if these characters are equal
    2. x has a 2nd character, but is not, or, if both are more than 1 character
    3. The substring SUBSTR (x, 2) > SUBSTR (y, 2)

    What (if any) strings mean is not serious, so

    • '9' is greater than '50',
    • 'zero' is greater than 'a '.
    • 'small' is greater than 'big '.
    • 'MIN' is greater than 'MAX '.
    • 'yesterday' is greater than 'tomorrow', and
    • "1 January 1900' is superior to" December 31, 2015 ".

    According to rule 1 Correction: rule 3 is the reason why 'MIN' is greater than 'MAX '; the others are all due to rule 1

  • Help understand the Double billing for the same product on the same account

    Recently, I realized that I make double charge on my account from creative cloud for the same exact items charged to the exact same credit card. In addition, I must say that I had two accounts still somehow. It is because I have lost access to the associated e-mail account and do could not connect. When I talked to Adobe at this time there they notify that I have create a new account with a new email, I did. That being said, every month for almost a year I was charged $31,79 and the new account as well. (I admit I'm not very good about checking all my automatic subscriptions online monthly but supposed to Adobe as a company highly and popular, could do things). I called and the first representative I spoke with today understands the problem and transferred to me for a refund, however once transferred, the representative was not only do not understand but rude and gave me a refund for 6 months. As of today, they canceled the account I have not used and me be charged twice a month for but only paid 6 months more than 12 months of double billing. The representative tried to tell me he was doing me a favor because I wasn't in charge of normal early termination fees. It has become so confusing and so I did at that moment that I said I would get more help here in the forums...

    1. I'm trying to understand why in the world they would even charge me a cancellation fee when I was clearly NOT cancellation of an account, just to make a change, which was made according to the way which they charged me and, of course, who they do not now recognize?

    2. How can I reload the same exact account for exactly the same product with activation of the said product as a single computer, and no other user (not to mention that I just used the product)?

    Any help or advice would be appreciated!

    All first of all my apologies for the not so pleasant experience.

    The Adobe ID here in the forum has a CC bought in March 2016 with no cases registered.

    I understand that this is for another subscription CC, could you please me message in private closed, the file number or the number of order which you have been invoiced in duplicate.

    I can probably follow that.

    Concerning

    Stéphane

  • Help understand the 'Editing Local' option in the volume of the App Manager

    Any body can help me understand the "Local Assembly" option in Volumes App Manager?

    I want to know if I activate this option, what effect to my environment and I can see this effect? Thank you.

    local.png

    Hey,.

    What is happening here is that Appvolumes will check on what data store, the VDI is located and attach this data store Appstacks (if appstacks are in this data store).

    It is only of use if you have a storagegroup with mutiple data warehouses, otherwise it will always choose the 1 appstack you have.

    This is mainly done to make sure that you don't have to much traffic of data between servers and storage.

  • Help understand the logic!

    Can someone help me with that?

    Can someone explain how the logic below works if you have the following input values:

    Input values:
    GLOBAL1_CURR_CODE = 'LOC '.
    DOC_CURR_CODE = "USD".
    LOC_CURR_CODE = "USD".


    IIF (ISNULL (GLOBAL1_CURR_CODE), NULL,
    IIF (GLOBAL1_CURR_CODE = DOC_CURR_CODE, 1.0,
    IIF (DOC_CURR_CODE = 'STAT', 1.0,
    IIF (GLOBAL1_CURR_CODE = LOC_CURR_CODE, DOC_TO_LOC_EXCH_RATE_VAR,
    : LKP. LKP_W_EXCH_RATE (DOC_CURR_CODE, GLOBAL1_CURR_CODE, EXCH_DT, GLOBAL1_RATE_TYPE, DATASOURCE_NUM_ID)))

    I'm not able to find the: LKP. LKP_W_EXCH_RATE in the SDE or SIL transformations.

    Thanks in advance.
    Nikki.

    Hi again Nikki, I see that you have two accounts of Oracle.com users!

    This seems to relate to several questions, you meet in the understanding of the global currencies how working with the BI Applications. For the benefit of third parties, the discussions are:-

    Logical Informatica for the Balance_Global1_Amt column in the W_GL_BALANCE_F table
    Logical Informatica for the Balance_Global1_Amt column in the W_GL_BALANCE_F table.

    Insert records into the table W_EXCH_RATE_G
    Re: Insert records in the W_EXCH_RATE_G table.

    Modify SIL_GLBalanceFact to populate the Balance_Global1_Amt column
    Change SIL_GLBalanceFact to populate the Balance_Global1_Amt column.

    Regarding your last question, I recognize that the SQL that you filled out below was derived from the mapplet MPLT_CURCY_CONVERSION_RATES1 in SIL_GLBalanceFact mapping.

    To understand the logic, you must understand the SQL used by Informatica, and Informatica research rating. Passing by your example line by line: -.

    GLOBAL1_CURR_CODE = 'LOC '.
    DOC_CURR_CODE = "USD".
    LOC_CURR_CODE = "USD".

    IIF (ISNULL (GLOBAL1_CURR_CODE), NULL,
    -So if the GLOBAL1_CURR_CODE is null, then return null else...

    IIF (GLOBAL1_CURR_CODE = DOC_CURR_CODE, 1.0,
    -If the GLOBAL1_CURR_CODE is equal to the DOC_CURR_CODE then return else 1.0...

    IIF (DOC_CURR_CODE = 'STAT', 1.0,
    -If the DOC_CURR_CODE is equal to 'STAT' (of the periodic statistics) then 1.0 else come back...

    IIF (GLOBAL1_CURR_CODE = LOC_CURR_CODE, DOC_TO_LOC_EXCH_RATE_VAR,
    -If the GLOBAL1_CURR_CODE is equal to the LOC_CURR_CODE then return DOC_TO_LOC_EXCH_RATE_VAR else column...

    : LKP. LKP_W_EXCH_RATE (DOC_CURR_CODE, GLOBAL1_CURR_CODE, EXCH_DT, GLOBAL1_RATE_TYPE, DATASOURCE_NUM_ID)))
    -search using the transformation of LKP_W_EXCH_RATE (you can see this list of choices on its own in the mapplet; scoring two points above is another way to refer to a transformation of research, instead of using connectors). The five columns in parentheses are used as inputs for research, if a matching record is found in the table, the EXCH_RATE column is returned (check the transformation of LKP_W_EXCH_RATE to the hole marked output).

    Please indicate so useful / correct.
    Andy

    www.Project.eu.com

  • Please help understand the mappings between PS & tables tables of data warehouse

    Hello
    We have OBIEE 11 g with OLIVIER 7.9.6.3 (HR Analytics) installation with Informatica PowerCenter SE 9.01 HF2. We use PeopleSoft HRMS 9.1 system source.
    Can you please help me how to understand the flow of data from end to end (or data model with relationship) between the PeopleSoft Tables and tables of data warehouse? Y at - it none available who liaises between the PeopleSoft HRMS tables and tables of data warehouse?

    PS We are new to Informatica workflow maps to find it very difficult to understand each mapping for each table.

    You can use the guide to table HR analytics on metalink. Here's the note:

    HR Analytics, Oracle Business Intelligence - Source tables uses [ID 1328607.1]

    This will show you the use of the main table. If you need the full line, you can use the data lineage Guide.

    If it helps, please mark as correct.

  • Need help with the code to add dates to form

    Hello fans forum

    I am new to make forms and understood how to auto add the date, but I need the shape to change the date for each copy made.

    For example, is today 08/06/2012 if I print 10 copies of the form it will display 10 pages from 08/06/2012 to 17/06/2012. If the code exists for this I would be very gratefull to one who helps, I also wouldn't mind if this is not possible for manually inputing start / end dates.

    Currently I have print 15-30 copies of the form and hand write each of the dates but I get just to busy to do it. Also I can't print one a day, it must be in batches.

    Thanks in advance.

    I think that you misunderstood my comment about the Console window. Please see the Console window tutorial link in my previous answer. The Acrobat JavaScript Console window is internal to Acrobat, so there is no system restrictions that may prevent you from using it. It's a perfect place to run short automation scripts that do things like print separate copies.

    George also underscores a great solution, put the script in a (non-printable) button on the document itself. However, due to security restrictions this solution can be a bit tricky, but no more so than using the Console window. Each solution takes a little extra effort.

    The problem with having multiple pages, it's that you must manually create a document with pages already in it.  It is certainly a feasible solution, it comes you limit the number of pages that you have already created manually.  At least one solution AcroForm. If you re-create your form as a dynamic LiveCycle, then creating new pages on the fly is not a problem.

    None of these solutions will work fine, the real trick is to increment the date.

    Here's a short script that begins with today's date and adds a day for each iteration of the loop and then prints

    One day in milliseconds

    var nOneDay = 24 * 60 * 60 * 1000;

    var nToday = (new Date()) .getTime ();

    for (var i = 0; i)<>

    {

    oTheDate = new Date (nToday + i * nOneDay);

    Date format

    cTheDate = util.printd("mm/dd/yyyy",oTheDate);

    this.getField("MyDate").value = cTheDate;

    This.Print)

    }

    This same loop could be used to fill in a form on the page - multi (repeated) fields.

    Using the util.scand () function, this loop could be setup to start at an arbitrary date.

    See you soon,.

  • Help understand the ERPi and planning

    Hi all

    Planning/Essbase. Version is 11.1.2.

    Can you please help me understand the role of the adapter of the ERPi. I have a hyperion planning that is on an essbase cube. We load the data and metadata for E-Business Suite 11. Forms and reports, I want to break through to the data of the EBS. I have installed and configured the adapter ERPi and ODI scenarios


    Question 1)

    Do I have to load data and metadata extraction for.

    Question 2)
    I put my source and target - systems where can I configure the "Drill Through".

    Thanks in advance for any help offered.

    Let me clarify, you must run the rule metadata ERPi in but you don't need to load the metadata for the application of the EMP. I think that much confusion exists around this point.

  • Need help with the code for drop-down selection, please!

    I'm falling out of scope with a drop of water in my form. My form is long, and certain areas are in Page 2. When I click on the "Customer hospitality event" drop-down list selection, the fields of P2 do not hide. Here is the code that I have on the menu drop-down:

    -form1. P1.meetDetails.meetType::exit :-(JavaScript, client).

    switch

    (this.rawValue)

    {

    " case" " Customer home ' :

    Header.PRESENCE = "visible";

    meetDetails.presence = "visible";

    meetDetailsaddl.presence = "visible";

    Form1. P2.rstatus.presence = 'hidden '.

    Form1. P2. Status.Presence = 'hidden '.

    breaking ;

    }

    Help, please!

    Thank you!

    I see that references to the P2 have no end of line separators (-).

    Form1. P2.rstatus.presence = 'hidden '.

    Form1. P2. Status.Presence = 'hidden '.

    The JavaScript runtime engine is perhaps unfortunate. Try to add them.

    Steve

  • Help understand the File Formats

    I need help with the file formats.  Is there an alternative to EPS files which allows customers to use vector graphics files in their projects?  My client has a graphic logo vector she wishes that the background is transparent and the clarity of the vector illustration, rather than a Jpeg file.  I read here that EPS files are becoming obsolete, but do not understand what it replaces.  I know that SVG files can be used, but I thought that the user could use Adobe software to open it.  Can someone please help me understand what file formats are best for logos?

    Thank you!

    Kim

    For users of Illustrator, the preferred format is a simple Illustrator .ai file. The default options when registering as an Adobe Illustrator file include the incorporation of a PDF file in the Illustrator file. This means that the data is stored twice: once as an Illustrator fully editable file, complete with live effects, links to the placed art, layers, etc. and once in PDF format that can be read by many programs, including InDesign, Photoshop, Apple Preview, MS Word, Adobe Reader and many others.

    If you only use Adobe programs, there is no reason to save the Illustrator EPS file. If you need to transfer your Illustrator files to another program, you must maintain with the limits of this program and its import options, which can mean saving in EPS format. If you work in a non Adobe drawing program, such as CorelDraw, but yo I want to convert your Illustrator illustrations, then the same restrictions apply. Try to save as many formats, including the native format of the program, PDF, EPS, and Illustrator. Open each in Illustrator and use the file kept more modifiable information, such as layers, text, and related files.

    Tell us which programs and what are the versions, you use. Chances are there is someone here who has experience in this conversion and you can talk through it.

Maybe you are looking for

  • Errors on windows 2008 to uninstall using mysql

    Hello guys,.I had to uninstall and reinstall now mysql connector 6.6.5 on windows 2008 server However, for a few weeks of pure headaches, I can't reinstall it again. 1. in the case of a spectator, he said. Detection of product '{1AAD0C51-CE9E-4ECD-BB

  • Upgrade Windows 7 to Windows 10. "Prepare your upgrade" stuck on 99%

    It is 99% the "preparing your updates" for some time last night, so I left it on all night. When I got home this morning. He was still stuck on 99%. I had the same thing happen a month or two ago when I tried to download and it got stuck, but after a

  • Is Agile - EBS DTR PIP 11.2 (media pack 11.4) certified with AIA 11.1.1.7?

    HelloWe need to back our dev/test 11.3 Agile-EBS PIP of 11.3 to 11.2 temporarily.  When we went from 11.2 to 11.3, our SOA servers are passed to the 11.1.1.7, which is accredited with FP AIA 11.1.1.7.Previously we missed our 11.2 on SOA 11.1.1.6 and

  • Can I export Adobe animate as awesome video?

    My employer wants me to look at using video for online learning. I have a lot of experience in Adobe Flash now known as Adobe animate. Adobe animate exportable animation in a video format that is as good as Adobe After Effects? I want to WOW my new e

  • Script does not work...!

    Hello worldI need to change my color Finder label of the file. However, I get the Adobe forums script (Re: changing color of labels with Javascript file)The script mentioned below error. Please fix this, or tell me the alternative.Thanks to Florian a