Strange problem with a plsql code example, please help

Hi all

I have the following code, the question is the exit condition IE "when the output meter = end_of_strng;', its loop to achieve I guess because my toad is get is crushed... but if I do a test on paper code seems perfect, all I'm trying to do is to pass a delimited string ex" : | Rahul | Kris | me | IBC | as the procedure entry and print names individually, please help.

Concerning
Rahul

The code is as follows:

CREATE or REPLACE procedure ANALYTIC_LAT.split_del_r_to_c (strng in varchar2)
as

extract_char varchar2 (1);
int counter: = 1;
int end_of_strng;
delimiter int: = 0;
part_of_strng varchar2 (1000);
int in_counter: = 2;

Begin

end_of_strng: = length (strng) + 1;

loop
extract_char: = substr(strng,counter,1);

If extract_char = ' |'
then
-dbms_output.put_line ('abc');
extract_char: = ' # ';
-delimiter: separator = + 1;
If (extract_char <>' |')
Then, wrap
-dbms_output.put_line ('abc1');
extract_char: = substr(strng,in_counter,1);
When the extract_char output = ' |';
part_of_strng: = part_of_strng | extract_char;
in_counter: = in_counter + 1;


end loop;
counter: = in_counter;
in_counter: = in_counter + 1;
dbms_output.put_line(part_of_strng||) e ');
-dbms_output.put_line ('abc2');
part_of_strng: = NULL;
end if;

end if;

-counter: = counter + 1;
When the meter output = end_of_strng;
end loop;
end;
/

Tags: Database

Similar Questions

  • Strange problem with my FPGA Code

    Hello

    I am running the following program, but I am facing a strange problem:
    -I can read all analog and digital input and write on the outputs analog (I measure the tension that I write on the map of the AO)

    - But the valves I have connected to the analog output, flashes a red light (which, according to the data, sheet means the electrical signal I send to them via the module AO is incorrect)

    -However, if I delete the ms and RMS block and do not make any average samples, but let all even (still two loops and two of the nodes separated from FPGA to e/s), the valves are operational and flash not a red light.

    I have a cRIO with four modules:
    -1. The (Mod1) AO cards
    -2. Map of HAVE it (2)
    -3. DI/O card (Mod 3)
    -4. Map to HAVE secondary (Mod4)

    I currently have two loops on the fpga all-in:
    -' Hand Loop (ML)': reads and writes I/O cards 1-3, with an expectation to 300us
    -'Top pressure sensors Loop (PACKAGE)' reads two HAVE the fourth module (Mod4), with no waiting

    These two loops are indicated in "fpga - part 1.png" and "fpga - part 2.png".

    The settings for the ms and RMS measures VI, as well as the façade are indicated in "fpga - part 3.png".

    The second loop uses 12002 ticks to run, the first loop use 160 ticks to run

    Previously, I had a similar problem which was fixed by setting the initial values indicated on the front cover for the analog output to the valves.

    Currently, I have not any target VI race and I'm only using fpga VI

    Any suggestions? Thank you!


  • Problems with WRT160N and Xbox 360 - please help

    Hello

    I recently bought a WRT160N router and when I play games online (Halo 3 or Modern Warfare 2) it takes about 10 minutes to find a game then that in the Hall. I didn't put in the door or disconnected from my profile, there's just a lot of time. It says that my NAT type is open. I've isolated the problem is the router because if I plug in an ethernet cable from the 360 to the DSL modem I find games instantly. I examined the port forwarding and open ports on the 360 and specifically for modern warfare 2 and it was actually my NAT type go as strict, ironic. I have spent 5 hours trying to mess with this and can't seem to make it work right. If someone could please help me on the settings or have any other ideas that would be greatly appreciated.

    As your ISP is a provider DSL, most providers DSL has setup their modem in DHCP Mode, so your Modem acts like a router. So, right now, your Setup is NAT behind NAT. So if you try to open the Ports on your Linksys router it does not work as your Modem Hangs only ports.

    So the best way to work is to convert your Modem in Bridge Mode and it will solve all your problems.

  • Problems with the photoshop pen pressure, please help!

    I have problems with the stylus pressure sensitivity. My drawing tablet works great and fits perfectly, but photoshop can't detect the pen pressure. The Tablet I have is a brand new turcom ts-6580.

    Yes, I tried their website and had no luck. I searched online to understand this and apparently this tablet has the same drivers as the tablet of the Oh, I guess that they were made by the same company. I sent an email to remember on this subject and they sent me a link to download the latest version of the driver.  Once I pulled the program and checked "TabletPC support." Photoshop has begun to recognize the pen pressure.

  • What is the problem with this embed code (pretty please)?

    Hello - anyone can tell me what I am doing wrong? I modified a friends homepage and I am tryring to incorporate the new .swf file that works perfectly in the second URL

    http://www.verityslice.com/grownuphtml/index.html (does not work)

    http://www.verityslice.com/grownuphtml/gum.html (work - published originally in Flash)

    Thank you

    In

    http://www.verityslice.com/grownuphtml/index.html

    Line under causing your html trying to load gum.swf of http://www.grownupmarketing.com/gum.swf, which failed.

    http://www.grownupmarketing.com/"/ >

    Option 1: use the good relative to your swf file path

    "grownuphtml/gum.swf".

    Option 2: use the full path to your swf file

    'http://www.grownupmarketing.com/grownuphtml/gum.swf'.

    Option 3: remove the tag base above.

    * but you may need to correct the target of the link of your page menu items.

  • problem with the custom field. Please help!

    Hi, I'm basiceditfield using code below, to draw the border and background in 4.5 jde. I hv tried a lot of things to set his height.but his does not work for all value.even I put height 100, it does not display the bottom line of the field

    Basic BasicEditField = new BasicEditField("","",15,1) {}

    g.setColor (14315734);
    g.setColor (Color.PERU);
    g.fillRoundRect (0,0,30,30,0,0);
                  
    g.setColor (Color.BLACK);
    g.setFont (Helper.getFont(6,"",false));
    g.drawText ("", 3, 3);
    g.setColor (Color.MAGENTA);
    g.drawRoundRect (20,30, 0, 0, 0, 0);

    Super.Paint (g);
    }
    };

    Mr.Peter,

    I tried already and surfing on the internet, my problem is something different and so I started a new thread, because I couldn't find the solution. Tried several codes that are on the forum, but with the same result, that's y I posted my code here.

  • A problem with the selections of feathers - please help!

    I am currently using Photoshop CS4 Extended.  This problem can be demonstrated by the following workflow (the actual size, I used are not important):

    1. open a new file with a white 4 "x 4" @ 400 dpi (use the foreground/background default colors - black and white).
    2. make a new layer (Layer 1) and fill it with black.
    3. a second new layer (Layer 2) and fill it black also.
    4. Select a rectangle in the Center about 2 "x 2".
    5. make layer 1 of the active layer.
    6. choose Select-> modify-> feather 100 pixels.
    7. tap on DELETE.
    8 make the layer 2 of the active layer.
    9. choose Selection-> invert.
    10. press delete.
    11 change the property of the layer 2 layer to multiply.

    I expect that the two layers (Layer 2 and layer 1) should be exact with the compliments of the other such that none of the white of the background layer should be visible through the black.  But instead, there is a halo of invisibility in the pen area (see this by disabling the background layer).  Step 11 seems to have no effect.

    None of you see this problem too.  What can I do to get an opacity of 100% in both layers of feathers?  Does anyone have an explanation for what is happening and why the unexpected behavior.

    Another thing that is strange is that if you just do a sselection feathers to say a black box, fill it with white and then fill the same selection with black, you get a similar unexpected result.

    You can contact me directly at [email protected] .

    Dave White

    http://www.atileimage.com

    Maybe I didn't address it directly, but I did it on a conceptual level: all calculations are multiplicative.

    If a pixel is partially selected, it is multiplicative combined with fill color (X % x 100 + original pixel color - X % x fill color).  To do this, twice, and some vestiges of the fill color of the first filling is part of the original pixel color twice.

    function() {return A.apply (null, [this] .concat ($A (arguments)))}

    I still want the effect somehow and wonder how.

    Can you describe clearly what it is you are trying to accomplish?

    -Christmas

  • PROBLEM WITH UPGRADE TO WINDOWS 7, PLEASE HELP

    Hi, I am in Australia and have a 64-bit HP DV7.  I did the upgrade request form, but when I put the model number in, it automatically selects the family window 32-bit premium - the problem is, it is grayed out and won't let me change to 64 - bit... I can't place the order because it's bad for my operating system. Any help/ideas would be greatly appreciated.  Thank you very much

    You are more than welcome!

  • Problem with the installation of photoshop - please help!

    Hello, as the employee of the wonderful adobe, instead of helping me solve my problem told me to search for the answer adobe help topics (I can NEVER find the answer, I need on any page of sites help topic, that's why I always prefer to just directly contact them) or try the forums (essentially giving access to his work to you guys) I'm here.

    I'm trying to donload my copy of photoshop elements 3 on my laptop. I downloaded it and works on my desktop and it's on my laptop before I needed to get a new hard drive. The problem is, whenever I try to open the program after installation, I get this message:

    "Could not complete your request because of missing or no personalization information valid"

    then the program closes.

    I have alread deleted and reinstalled the program several times, but no luck.

    Any ideas on what the issue is, and how I can fix this problem?

    I use Mac Os X, fyi

    PS I just downloaded on my sister's laptop, that's why I'm trying to work on mine even once, I thought that it would be finally...

    The only reference I found to this error are intended for Windows users, but it seems to point to an authorization number.  I recommend creating a new administrator account and repeat installation under this account.  It seems as if the installation program cannot write the serial number during installation information.  A new administrator account resets permissions so should not encounter the same problem as your current user account.

  • Eclipse problems with the plugin SDK installation - please help

    You have a new PC.  Yes for me.  Installed the new Eclipse + BB JDK of this site.  There is no option for BlackBerry projects when I run Eclipse.

    When I import my old PC projects, there are tons of red x in them.

    If I go to software updates, it shows 1.1 plugin and v5 SDK * is * installed.

    Something simple, I'm sure.

    I have not installed Java SDK 6 real.  Although he does not tell you which at the time.  He moved very well, it just doesn't work.

    I have installed the Java SDK6 and reinstalled and it worked.  Thank you, Mark.

  • problem with the f: param element, Please HELP

    Hello

    I have a screen that opens the file stored in the file system, I used frank.nimphius steps in his article:
    http://thepeninsulasedge.com/frank_nimphius/2007/08/18/ADF-faces-direct-file-download-through-managed-bean/

    but when I printed in the paper that it shows null, the value of the parameter

    ValueBinding documentParameter = fctx.getApplication ().createValueBinding("#{param.document}");
    DocumentName = documentParameter.getValue (fctx) object;
    System.out.println ((String) DocumentName); -> It's null


    I use Jdeveloper 10 g

    Try this:

            
                  
                
              
            
    
    public class MyBB {
    
        private String myParam1;
        private String value = "Value";
    
        public MyBB() {
        }
    
        public String openDocument( ) {
        System.out.println("in open document method call.....");
        System.out.println(myParam1);
        }
    
        public void setMyParam1(String myParam1) {
            this.myParam1 = myParam1;
        }
    
        public String getMyParam1() {
            return myParam1;
        }
    
        public void setValue(String value) {
            this.value = value;
        }
    
        public String getValue() {
            return value;
        }
    
    }
    
  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ 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

  • What is the problem with my http code?

    I have a problem with the following code on the Bold 9700.  The code works on the Simulator and other devices, but some users have problems.  It seems that nothing is returned when getting the html page.

        static String get_page(String url)
        {
    
            StreamConnection s = null;
            InputStream input = null;
    
            try
            {
    
                s = (StreamConnection)Connector.open(url);
    
                input = s.openInputStream();
                byte[] data = new byte[4096];
                int len;
                StringBuffer raw = new StringBuffer();
                long startTime = System.currentTimeMillis();
    
                while ( -1 != (len = input.read(data)) )
                {
    
                    if (len > 0) {
                        raw.append(new String(data, 0, len));
                    }
    
                    // check for timeout waiting for server; or
                    // what if page never closes...
                    if (System.currentTimeMillis() - startTime >  30000)
                    {
                        s.close();
                        return("ERR2");
                    }
                }
                s.close();
    
                return(raw.toString());
            }
            catch (Exception e)
            {
                return("ERR3");
            }
    
            finally
            {
                try
                {
                    if (input != null)
                        input.close();
                }
                catch (Exception e)
                {
                }
            }
        }
    

    Y does it have that none of the Options application settings must be defined? for example: TCP/IP

    The Thread I pointed you to and the various "required reading" material, describes how the different network paths are selected by changing the suffix of the URL used connection.  The standard demo does not add a suffix, by default, choose BES connection, so will be.  Unless of course, the carrier has provided a different default value for a feature not BIS, for example, I understand that Vodafone UK will send it via WAP.

    According to the treatment of suffix / default connection, the request will be routed through a number of "gateways" like BES/MDS or the carrier's WAP gateway.  If any of them could give the 500.

    Assuming that it makes actually to your server (I assume this is a URL that you control), then the 500 from the treatment of your Web.  For example, this could be because your processing wait some headers in the http request which are not provided.  Or, that demand has been sent by a gateway changing the headers in a way that is not pregnant with your web server.

    With same URL work on the browser is unfortunately not much of a test as it can be routed through a method of communication that you do not use (for example, on Vodafone BIS devices I think the default browser will use BIS - B) and, in addition, it could provide some headers for the http connection that you do not provide.

    The point really is that there are many places that could break this code.  And there are number of variables, including what method of connection is used (and in the case of Vodafone, effectively forced to use), which carrier is used and which headers were provided.

    But I think the first thing we do is to know who is giving you the 500.  If you can follow the application to your own server, so much the better.  If you can not, in the headers that come back with 500, you should some server information.  The dump out., empty the suffix of connection you use and if possible, get the log records from at the time this was done (which confirms the method of connection actually used).

    I also search this forum for more information on issues people have had with the carriers.  I know that there is some information on Vodafone UK.  According to me, that there is still something at least another carrier.

    Sorry, comms on the BB is not as simple as that...

  • Strange problem with HorizontalFieldManager - it does not show on real device bitmap

    I have a rather strange problem with the HorizontalFieldManager on my Blackberry 8820, which I did not on the Simulator, or done other blackberries that I tried to install my game.

    The problem is that bitmaps that I add, do not appear on the actual device, as in the images below. The code is provided below as well. No idea how to debug, or resolve is appreciated.

    Here's what I see on Simulator and some devices

    Here's what I see on the real blackberry:

    Code:

    ......

    OK, I found the solution - the problem is that there seems to be a bug where you can't put more fields button radio on a horizontal layout manager with 4.2.2.x.

    The solution is to extend the RadioButtonField field and replace the positioning method:

    RadioButtonField radioField = new RadioButtonHack ("", textureGroup, isSelected);

    SerializableAttribute public class RadioButtonHack extends RadioButtonField {}

    public RadioButtonHack() {}
    Super();
    }

    public RadioButtonHack (String label, group RadioButtonGroup,
    Boolean selected, long style) {}
    Super (label, group, selected, style);
    }

    public RadioButtonHack (String label, group RadioButtonGroup,
    Boolean selected) {}
    Super (label, selected group);
    }

    public RadioButtonHack (label As String) {}
    Super (label);
    }

    Protected Sub layout (int width, int height) {}
    int temp = this.getPreferredWidth ();
    setExtent (time, height);
    Super.Layout (time, height);
    }

    }

    resolved http://supportforums.blackberry.com/t5/Java-Development/radiobuttonGroup-related-problem-in-storm/m-...

  • I get this error with my login form, I did, but I'm not sure if this is a problem with my php code or

    I get this error with my login form when I try to log in, but I'm not sure if this is a problem with my php code or my flex code!

    ReferenceError: Error #1069: loginsuccess property not found on string and there is no default value.
    CBC::main/checkLogin()
    CBC::main/__login_user_result()
    to flash. events::EventDispatcher / dispatchEv...
    to flash. events::EventDispatcher / dispatchEv...
    to HTTPOperation / http://www.Adobe.com/2006/Flex/MX/internal:dispatchRpcEvent ()
    to mx.rpc::AbstractInvoker / http://www.Adobe.com/2006/Flex/MX/internal:resultHandler ()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    to the DirectHTTPMessageResponder/completeHandl...
    to flash. events::EventDispatcher / dispatchEv...
    to flash. events::EventDispatcher / dispatchEv...
    at flash.net::URLLoader/onComplete()


    my php code is:


    [php] <? PHP

    define ("DATABASE_SERVER", "localhost");

    define ('DATABASE_USERNAME","f4r");

    define ('DATABASE_PASSWORD', 'cool23');

    define ('database_name', 'bignixs1');

    connect to the database

    $mysql = mysql_connect (DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD) or die (mysql_error ());

    Select the database

    @mysql_select_db (DATABASE_NAME);

    re-branded the data passed from Flex to variables

    $username = mysql_real_escape_string ($_POST ["usernam...)

    $password = mysql_real_escape_string ($_POST ["passwor...)

    Ask the database to see if the combination of username/password given name is valid.

    $query = "SELECT * from users WHERE username = 'username' AND password = 'password" ";

    $result = mysql_fetch_array (mysql_query ($query));

    start generating XML

    $output = "< loginsuccess > ';

    If the query returned true, exit < loginsuccess > Yes < / loginsuccess > other output < loginsuccess > not < / loginsuccess >

    if(!$result)

    {

    $output. = « no » ;

    } else {}

    $output. = "yes";

    }

    $output. = "< / loginsuccess > ';

    all the XML for output

    print ($output);

    ? > [/php]

    $query = "SELECT * from users WHERE username = 'username' AND password = 'password" ";

    should be

    $query = "SELECT * FROM users WHERE username = '$username' AND password =  '$password'";
    

    example of a system of working with the correct connection code flex & php to ensure:

    http://www.mattlefevre.com/viewExample.php?tut=flexPHP&proj=simple%20Login%20Application

Maybe you are looking for

  • Re: No more windows after Linux don't install

    Hello world I made a big mistake during the installation of Linux on my new Toshiba Sattelite, I erased completely all the partitions on the hard disk, so there is no windows more on my laptop... What should I do? I am ok to buy a recovery dvd, but i

  • Feature WiFi of Tecra A11 goes out several times per day

    I have a Tecra A11 S3540 and he began arresting capacity wireless itself. The switch is turned on and I updated all drivers network card.What should I do to fix this problem, because it is difficult to work on the laptop!

  • Satellite A300-1EG multimedia keys don't work in Win XP

    Help me! Lighting does not work.Where can I configure the multimedia keyboard drivers? Maybe the necessary computer special drivers for WinXP?

  • Y570 GPU

    Can someone who has a Y570 with GDDR5 Ram on the GT 555 M post here a picture of GPU - Z, I would compare my results, thank you

  • Internet access problem

    I don't know it is purely a problem of Vista, but the tech at my IP guy thought so. I'd appreciate any help that anyone can give! Details: HP Pavilion, Windows Vista, by modem cable (not wireless). Last week, my IP had a power outage in my area. My i