Why these stored procedures his does not work

Hi I'm new and I need help following SQL works correctly, but when I walked into a stored procedure me displays error

SELECT Por.PortalID,

Name,

Lower (LTrim (RTrim (SEOName))) SEOName,

IsParent,

Por.Parentid,

(Select Seoname

Portal port

Where Por.Parentid = Port.Portalid) Parentportalname;

SettingValue.SettingValue DefaultPage

Por PORTAL

JOIN SettingValue

ON Por.PortalID = SettingValue.settingtypeid

Where Settingtype = 'SiteAdmin '.

And Settingkey = 'PortalDefaultPage. '

his return:

Portald Name SEONAME ISPARENT ParentId parentportalname DefaultPage
1by defaultby default10nullHomepage

It's my stored procedure

create or replace

Procedure Sp_Portalgetlist as

Start

SELECT Por.PortalID,

Name,

Lower (LTrim (RTrim (SEOName))) SEOName,

IsParent,

Por.Parentid,

(Select Seoname

Portal port

Where Por.Parentid = Port.Portalid) Parentportalname;

SettingValue.SettingValue DefaultPage

Por PORTAL

JOIN SettingValue

ON Por.PortalID = SettingValue.settingtypeid

Where Settingtype = 'SiteAdmin '.

And Settingkey = 'PortalDefaultPage ';

END SP_PORTALGETLIST;

When I compile with oracle sqldeveloper show this error:

  • Error (4.1): PLS-00428: an INTO clause in this SELECT statement

I appreciate all the help

What about the compile error in a PL/SQL block a select statement has an additional part:

Select attr1, attr2...

in var1, var2,...

Of...

but you can also use your selection (without the) in a cursor:

procedure is...

cursor my_select is

Select...;

my_variable my_cursor % rowtype;

Start

Open my_cursor;

extract my_cursor in my_variable; -fails at the record and then one more found!

close my_cursor;

...

Good bye

DPT

Tags: Database

Similar Questions

  • Why my php export feature does not work in IE and not firefox?

    Why my php export feature does not work in IE and not Firefox? I wrote a web application that contains a SigmaGrid. Grid controls reload, add update delete, print and export to CSV all work in IE8. The export function does not work in Firefox.

    Have you tried to test your application on IE7/8/9 and FF10/Chrome/Opera?

  • Why the Polish support page does not work?

    Why the Polish support page does not work?

    http://PL.consumer.Toshiba.EU/PL/support/home/support_home?

    I think the error message is pretty clear:

    + Service temporarily unavailable +.
    + The server is temporarily unable to process your request due to downtime or maintenance capacity problems. Please try again later. +

  • I'm currently implementing textcolor() in devc ++ but his does not work

    Original title: devc ++

    Respected Sir/Madam

    I'm currently implementing textcolor() in devc ++ but his does not work. Can you please help me... ?. Please give me tha example code simple. Thank you.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Does anyone know any reason why my photoshop 3D CC does not work. Cannot highlight the functions, as are gray. I Lion 10.7.5 but all other functions seem to work. ?

    Does anyone know any reason why my photoshop 3D CC does not work. Cannot highlight the functions, as are gray. I Lion 10.7.5 but all other functions seem to work. ?

    upgrade your operating system, Photoshop system requirements

  • Why the button "Save as" does not work in new Acrobat Reader? Very annoying...

    Why the button "Save as" does not work in new Acrobat Reader? Very annoying...

    I have already updated to the last DC v15.009.20077...

    So I found a way, if I do it just right, it works (with the file, click the "tiny" file and then save as. I made the mistake of first pressing the home much more first. Really not intuitive or easy to use even if... Looks like you have replaced the button "save under" with the "save in the cloud." We use mettle at work, and the cloud of Adobe is irrelevant for me...

  • HY, I used to use your adobe photoshop cs6 I have my laptop. some of the reasons for my laptop was not working, so I've restored my laptop. I have tried to reinstalled photoshop with old license No, but his does not work. what I would do.

    HY, I used to use your adobe photoshop cs6 I have my laptop. some of the reasons for my laptop was not working, so I've restored my laptop. I have tried to reinstalled photoshop with old license No, but his does not work. what I would do.

    Please return to the message sent to you.

  • Why the "vertical-align" argument does not work?

    Very often, I try to use the "vertical-align" argument to control the CSS formatting, but so far he has never worked, so I had to resolve the situation by specifying values for margin...

    Why the "vertical-align" argument does not work in CSS?

    Alternatives?

    For your reading pleasure.

    http://phrogz.NET/CSS/vertical-align/index.html

    Gary

  • I paid him for members - but his does not work?

    I just bought by the head of our society - I'm thinking as added and active on his account - but when I connect - my 'judgment' is expired and I can't do something. Whats cloud, soft creative does not work - I have a white screen and that's it (after you have reinstalled)... (screenshot below).

    Any ideas what will I do? I can't workwhatsgoingon.jpg

    Hi Leydo,

    Please refer to the threads below where this issue has been addressed:

    1 new Creative Cloud application unusable: it is empty!

    2 cloud Desktop App is empty?

    3 creative cloud is empty window why?

    I hope this helps!

    Kind regards

    Sheena

  • Why my brushes on CS5 does not work?

    Why my brushes cs5 does not work? I have a Pentium clocked at 2.7 GHz Duo Core 4Ram computer. all the brushes but the brushes work... My wife's computer can use them but mine does not.  Siena is a windows vista 2 GHz 4 core duo ram.2010-11-13_1937.jpg

    I found online a simular with another mistake, but they didn't get enabled.  can help you or know a program that can afford ELP paintbrushes?

    I don't know exactly why it crashes, but the crash is in your NVidia OpenGL driver.

    You can try to disable OpenGL drawing in Photoshop at the moment.

    But you should check for updated drivers and possibly contact NVidia if they haven't fixed the bug yet.

  • These recent key apps does not work does not correctly

    My recent phones apps key was no longer works. He works in time more than 2 out of 10, or less. Any body having the solution for my problem.

    Try restarting your device first. If it still does not work, then maybe try a Factory Reset.

  • When I want to install express inte intaler then he said that he failefk to install it. Why and my sound system does not work.

    My sound system does not work. my sound card on the motherboard is damaged then I bought a new and it worked fine then when I reinstalled xp wasn't working the audio device. What can I do now?

    Hello

    ·         You get an error code?

    ·         What is the brand and model of the computer?

    ·         What is the brand and model of the sound card?

    ·         Using Intel motherboard?

    I suggest you follow the troubleshooting steps form the article and check if it helps.

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    You can also check this link for Intel Express installer fails to start and check if it helps.

    http://www.Intel.com/support/motherboards/desktop/sb/CS-014565.htm

  • Why is my second screen does not work - it starts with my main screen, but then turns off.

    My HP Pavilion P7-1120 Desktop PC does not work with two screens - there 8gig of ram...  1.5 terabyt hard drive, Windows 7 64-bit primary system works via the VGA port, but the second screen does not rest via the DVI port.  The two normal startup with the start-up of information on both screens, then the secondary display stops and I get a message "no signal".  Both monitors worked with my laptop PC and older myDell...

    When I go into the control panel and the view tab - the PC does not recognize the second monitor.

    GEO...

    It's not a problem with my PC or whatever it is in the box.  Cables work on other screens of the RGA and DVI.  There is a problem with my screen - the works of port RGA, is not the DVI port.  Another monitor works properly by the DVI.

    Now fixed.

    TKS for the entry.

    GEO...

  • Why the button new folder does not work

    the button create a new folder does not work

    Hello

    You have a common problem with Windows 7. The work that I and many others use is a utility called FileMenu Tools. You can download safely from this link: http://www.softpedia.com/get/PORTABLE-SOFTWARE/System/System-Enhancements/FileMenu-Tools-Portable.shtml .

    After downloading, install the program. Each option is checked by default. I would be much more selective on this subject, otherwise your context menu will be a full page long! When the main window opens, you will see a list on the right side of all the elements that can be added to the context menu. Start weeding through the list and every one to take away, you don't need the United Nationsby checking the box.

    Once you have completed your selection (de-selections) make sure that you click the green check mark in the row of icons at the top of the left window of the interface to 'Apply' of your choice. The program can do much more, but that answers your specific question. I am told that the program has a good help file, so try here if you are interested.

    Let me know how you fare.

    Kind regards

    BearPup

  • Using the stored procedure: Source does not have a target executable

    I'm a guy from MS - SQL, so I'm fairly familiar with T - SQL syntax, but feels a heck of a time trying to take the code I wrote for SQL and turn this works with Oracle.

    in any case, I'm using Oracle SQL Developer, and I have a stored procedure that calls the Alter Table statement and adds a column. Just trying to get this one to work before moving on to the other that I have. I get the message that source does not have a target executable when I try to run this command.

    create or replace PROCEDURE rta_conv_addcolumn (rtatablename1 in varchar (20),)
    rtatablename2 in varchar (20),
    rtacolumnname in varchar (256),
    rtacolumninfo in varchar (256))
    AS
    DECLARE rtasql VARCHAR (4000);
    BEGIN
    IF EXISTS (SELECT * from user_tables WHERE table_name = rtatablename1)
    AND NOT EXISTS (SELECT * from user_tab_columns WHERE column_name = rtacolumnname)
    AND table_name = rtatablename1)
    AND NOT EXISTS (SELECT * from user_tab_columns WHERE column_name = rtacolumnname)
    AND table_name = rtatablename2)
    Then rtasql: = ' ALTER TABLE ["+ rtatablename2 +"] ADD "+ rtacolumnname +" "+ rtacolumninfo;
    Run (rtasql);
    END rta_conv_addcolumn;

    If I try to compile I get the following messages, which make no sense, since the syntax I use to declare the input variables seems to be good.

    Error (1.54): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
    Error (2.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
    Error (3.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
    Error (4.29): PLS-00103: encountered the symbol "(" quand attend une deles de valeurs suivantes:: =.), @ default % of the characters of the symbol ': = ' has been replaced by "(" pour continuer.)
    Error (6.1): PLS-00103: encountered the symbol "DECLARE" when expecting one of the following: begin function package pragma procedure < an ID > subtype type use < a between double quote delimited identifiers of > form current cursor external language the symbol 'start' is substituted for 'SAID' continue.
    Error (15.5): PLS-00103: encountered the symbol "RTA_CONV_ADDCOLUMN" when expects it one of the following values: If

    Adds the column to the table specified in rtatablename1, if there is neither rtatablename1 nor rtatablename2.

    NOT TESTED

    create or replace PROCEDURE rta_conv_addcolumn(rtatablename1 in varchar,
    rtatablename2 in varchar,
    rtacolumnname in varchar,
    rtacolumninfo in varchar)
    AS
    rtasql VARCHAR(4000);
    count1 number;
    count2 number;
    count3 number;
    BEGIN
      SELECT count(*) into count1 FROM user_tables WHERE table_name = rtatablename1;
      SELECT count(*) into count2 FROM user_tab_columns WHERE column_name = rtacolumnname AND table_name = rtatablename1;
      SELECT count(*) into count3 FROM user_tab_columns WHERE column_name = rtacolumnname AND table_name = rtatablename2;
      IF count1>0 AND count2 = 0 AND count3=0 Then
        rtasql:= 'ALTER TABLE '|| rtatablename1 ||'ADD ' || rtacolumnname || ' ' || rtacolumninfo;
        Execute immediate rtasql;
      END IF;
    END rta_conv_addcolumn;
    /
    

    Max

    Published by: Massimo Ruocchio, December 12, 2009 02:15
    Missing AND

Maybe you are looking for

  • Replacement motherboard for my compaq cq 61 with windows 7 OS

    Please, I want to replace my motherboard laptop compaq laptop, with one that has a processor intel. I currently have a celeron processor which is too slow for me. Please I need advice on motherboard, best and most appropriate, to by and install in th

  • OfficeJet 4500 g 510g - m: Officejet 4500 g 510g - m software for Mac

    I need to know if there is software for the MAC computer.  Just bought the MAC and this is my first one so really unaware of things like that.  If someone can point me in the right direction, I would appreciate it, of course! Thank you very much!

  • Number of devices connected to my router

    On the start Cisco Connect screen, top left "Computer and other devices" section shows that 1 device is connected. However, there are in the table of client DHCP 12 devices and wireless MAC filter it 7 devices are listed. Can someone explain why a di

  • unexpected type (position: TEXT refusal of connection...)

    Hello I'm trying to access a Web service using ksoap2. I work in blackberry JDE 4.2.1. Here is my code snippet:

  • start without password for win7

    I am the owner, administrator and the single user of my Dell Inspiron notebook.  Is it possible that I can implement Win7 Pro so that I don't have to use / enter a windows password whenever I start at home?  I would like to activate function turn on