required to break the query string

Hi all

Can do anything please help me write a query for the following rerquirement.

I / P:

NAME
-------
MIKE
...
...


O/P:

MIKE should appear as

NAME:
-------
M
I have
K
E

Thank you.

Hello

See {message identifier: = 10095021} in several ways.

Tags: Database

Similar Questions

  • How to store the query string value in the scope of the session in webcenter spaces?

    Hello

    I want to store the query string value (which is given from URL) in the sessionScope variable. According to the value of sessionScope beacause I went some components inside my taskflow. Can someone help me how to store this value in the scope of the session. I use webcenter spaces for my application development.

    Thank you

    Ashok.

    Please see the article below

    How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1).

  • You can control a URL in eloqua to add to the query string?

    If I insert a URL in an email, I can't stop eloqua to add additional query string parameters in eloqua.

    I want to make this happen because the URL doesn't seem to work if we add an extra parameter using the query string.

    I had a similar problem recently, and even turn off the tracking doesn't seem to help.  I finally decided to use a shortened URL (bit.ly) and it worked for me.

  • Problems with the primary key of the query string

    Moving from asp to php, to work with David Power's book: The Essential Guide to Dreamweaver CS4 with CSS, AJAX, and PHP.  Recycling of my brain, so starting from scratch in the learning process.

    Everything was going perfectly until I tried to add the primary key of a record in a query string.  I compared my code with the example code for the book, and everything matches.  When previewing the page in my browser and hover over the link which must pass the main code on the next page, the query string does not appear correctly.  It shows user_id = but no figure shows, as it is supposed to.  www.webpage.com/update_user.php?user_id=

    Here is my code: (Please note, <>have been removed, as I was unable to find a way view the code in the correct way here (copy/paste was doesn't work do not, nor insert syntax))

    ? PHP {?}

    ? PHP echo $row_listUser ['family_name'];? PHP echo $row_listUser ["FirstName"];?

    ? PHP echo $row_listUser ['username'];?       ? PHP echo $row_listUser ["admin_priv"];?

    a href = "update_user.php? user_id =? php echo $row_listUser ['user_id'];?" "Edit / has

    a href = "delete_user.php? user_id =? php echo $row_listUser ['user_id'];?" ' Delete / has

    ? PHP} while ($row_listUser = mysql_fetch_assoc ($listUser));?

    Any ideas that could help me understand why this part does not in particular would be greatly appreciated.  Writing to the database worked perfectly, I see that there are numbers in the database as user_id, and it is defined as my primary key in the configuration database.  Such a simple process that is causing me headaches!

    Thank you

    You have the code to request a copy in your folder:

    $query_listUser = 'SELECT user_id, username, first_name, family_name, admin_priv from users ORDER BY family_name ASC';

    $listUser = mysql_query ($query_listUser, $connSCFDIR) or die (mysql_error ());

    $row_listUser = mysql_fetch_assoc ($listUser);

    $totalRows_listUser = mysql_num_rows ($listUser);

    $query_listUser = 'SELECT username, first_name, family_name, admin_priv from users ORDER BY family_name ASC';

    $listUser = mysql_query ($query_listUser, $connSCFDIR) or die (mysql_error ());

    $row_listUser = mysql_fetch_assoc ($listUser);

    The $listUser table will contain the results of the second query, which does not include the field user_id. delete the redundant code.

  • PHP, handling # in a passage of the string in the query string

    I'm new to PHP the world ASP. I'm working on a shopping cart where, I'm passing the name of the item through the query string in the processcart.php file. It works fine until I have put a sign # in the name of the element. Is there a good way to manage the channels with signs # among them.

    David

    DEPearson wrote:
    > I'm new to PHP the world ASP. I'm working on a shopping cart where I
    > pass the option through the query string name in the processcart.php file. It works
    > great until I have put a sign # in the name of the element. Is there a good way to manage
    > strings containing signs # among them.

    PHP can handle # in a string without problems. The error that you are
    manufacturing must pass # by a query string. In a URL, # indicates a
    element named inside the page. To use # as a character who is preserved
    as a literal value, you need to urlencode. You can either do
    with the urlencoded function. It is probably easier to use the
    URL directly: %23 represents #.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Example to use the query string in the Oracle Access Manager policy.

    Hi all

    Can is there any one please tell me what is the value of the query string and Query String Variable OAM political?

    If possible, please explain with an example of the sample.

    Thanks in advance.

    Siva NAKI.

    Let's say I have an application that has logout URL as http://abc.com/app.cgi?function=logout&user=LOGGED_USER.
    In this case, logged in user will always be different, but you want the user to sign out when this URL is hit. In this scenario, you can use query string variables and specify the function = disconnect it.

    In other scenarios where you know all the query parameters and you want to protect these URLs then the query string can be used.

    Thank you
    Kiran Thakkar

  • How to get the query of the region "PL/SQL function body returns the query string"?

    Hello

    is it possible to get the query string from the region of type "PL/SQL function body returns the query string"?

    I can get the definition of the region as a PL/SQL procedure, but I am interested in the returned query. I tried to write something like

    < pre > v_return_query: = «...» » ;
    : P49_QUERY: = v_return_query;
    Return v_return_query; < / pre >

    to save the return on hidden item P49_QUERY string, but it does not work. I get the error message: ERR-1002 cannot find the item for the "P49_QUERY" element ID in the application '4000 '.

    Kind regards
    Przemek

    If you need to make reference to a page element in the block then you can use this type of control to avoid having to use generic column names:

    if apex_application.get_current_flow_sgid(:APP_ID) = apex_application.get_sgid then-- runtime  :P9_SQL := vSQL;else-- design time  null;end if;
    

    But if all you want to do is capture the SQL debugging you can take all the references element in the block and use the insert statement (in a debug table) as I showed earlier.

    Scott

  • Extract the subset of data in the query string

    Hi all

    I am using query strings in Eloqua for some time and found the implementation of them quite simple. I recently ran well across a scenario where it is not set up as a standard string.

    The URL ends up looking like this:

    http://Sub.domain.com/LP=123/?var=AB-business-_-AB-BusinessAB-_-TRK1AB23_hm_comp2-e_abcdefg_s

    The 'TRK1AB23' is the component I want to extract and place in a field.

    When I use the following code, I find myself everything of value, I want to pull all the way to the end of the string. What should I do to this code to retrieve only the characters that I need?

    function getQueryStringParamValue (strQStrParam) {}

    strURL var = document.location.href;

    var strQStrParamValue = "";

    If (strURL.indexOf('?')! = - 1) {}

    strQStrParamValue = strURL.substr (strURL.indexOf('?') + 1);

    If (strQStrParamValue.indexOf (strQStrParam)! = - 1) {}

    strQStrParamValue = strQStrParamValue.substr (strQStrParamValue.indexOf (strQStrParam));

    strQStrParamValue = strQStrParamValue.substr (strQStrParamValue.indexOf ('TRK') + 1);

    If (strQStrParamValue.indexOf('&')! = - 1) strQStrParamValue = strQStrParamValue.substr (0, strQStrParamValue.indexOf ('&'));

    Return strQStrParamValue;

    } else {}

    strQStrParamValue = defaultHiddenFieldNameValue;

    Return strQStrParamValue;

    }

    } else {}

    strQStrParamValue = defaultHiddenFieldNameValue;

    Return strQStrParamValue;

    }

    }

    Insert here the name of the form

    var form = 'generic ';

    function setCampaign() {}

    var elqForm = return [form];

    Repeat for each field to be completed

    elqForm.elements ['singleLineText'] .value = getQueryStringParamValue ('var');

    }

    Window.OnLoad = setCampaign;

    < /script >

    Egan,

    Your answer actually has helped me tremendously. I learned to look closer the code and found that it was an option of substring. I changed the substring to look at the first three characters of the code (which are always consistent) and then adjusted to shoot only the eight characters containing the code.

    It is not the prettiest or most appropriate code but it does exactly what I need to!

  • Bug: APEX_COLLECTION. CREATE_COLLECTION_FROM_QUERY_B change the query string

    Hi APEX Dev Team.

    I found a bug (or I don't know how to get around unexpected behavior) in APEX_COLLECTION. CREATE_COLLECTION_FROM_QUERY_B. I think that it also applies to the CREATE_COLLECTION_FROM_QUERY.

    What's happening: some strings are replaced in the query, I pass into the function. for example '22% ' is replaced by a white. It is not good if I have a query like this:
    SELECT MYCOLA, MYCOLB, MYCOLC FROM MYTABLEA WHERE MYPHONE LIKE '%22306%';
    This returns no rows in the collection. If I run this query in SQL Developer she returns 5 rows.

    When I change the declaration subsequently, it returns 5 rows in the collection.
    SELECT MYCOLA, MYCOLB, MYCOLC FROM MYTABLEA WHERE MYPHONE LIKE '%2306%';
    Trace shows me, the first SELECT statement is replaced by
    SELECT MYCOLA, MYCOLB, MYCOLC FROM MYTABLEA WHERE MYPHONE LIKE ' 306%';
    Which is obviously false :-)

    The changes seem to be limited to 22%, I found no other characters encoding URLS that are replaced in the query.

    Please fix, as I can't find any workaround.

    Thank you
    Peter

    -----
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

    Hi Peter,.

    Thanks for reporting this. This seems to be a legacy logic which is no longer necessary (the logic to replace the string '22% '). I corrected it to Application Express 4.1.

    To work around the problem, you can concatenate this string in your application, allowing you to avoid this logic. For example,.

    SELECT MYCOLA, MYCOLB, MYCOLC FROM MYTABLEA WHERE MYPHONE LIKE '%2 '. 2306 ' %';

    Thanks again.

    Joel

  • What is the limit on the query string / post / URL parameters?

    Is there a limitation on the url parameters sent in the post method?

    Thanks in advance.

    Chandra, I'm afraid that I don't know what you just said.

    URL parameters, as far as I know, are not encrypted even in an HTTPS Exchange, because they are considered as part of the URL, only not part of the message.  The body of the message (i.e. POST), on the other hand, it's protected.

    I suggest that you send the query parameters in JSON format, just as you could do it with AJAX.  It is a well designed and well understood Protocol with good support on the client and server side.  (XML is also the same.)  This will put the exchange of information in the body of the message (encrypted), and it also will allow you to send and receive information structured structs and lists and tables and so - on.

    You still need to be aware of the size of the messages, but not nearly as much with the URL string.

    Whenever you feel that you could be "pushing a limit", it is time to think that "there must be a better way to do it."

  • Need help with the query string manipulation

    Hello

    With the help of 10.1.0.4.2

    Given a table called PREFIX_CODES that contains a column called PREFIX_CODE
    with the following data:

    PREFIX_CODE - VARCHAR2 (20)
    -------------------
    AAA
    BENAMER
    CARTER

    and another table called SUBSCRIBERS with a column called SUBSCRIBER_ID
    with the following data:

    SUBSCRIBER_ID - VARCHAR2 (30)
    ---------------------
    BBBB-123456
    AAA-444444
    DD-2222222
    EEEE-888888

    Is there a query that will pull all the SUBSCRIBER_ID that begin with
    each of the PREFIX_CODES? The following query is not valid, but it
    This will give you an idea of what I'm trying to do:

    SELECT SUBSCRIBER_ID
    SUBSCRIBERS
    WHERE AS SUBSCRIBER_ID (SELECT PREFIX_CODE |) » %'
    OF PREFIX_CODES)

    Using the data from above, I would like that the query to return:

    BBBB-123456
    AAA-444444

    Thanks for your help!

    Hello

    Welcome to the forum!

    You were on the right track. To find if a given subscriber corresponds to any prefix_code, you can do an EXISTS subquery:

    SELECT     subscriber_id
    FROM     subsribers     s
    WHERE     EXISTS ( SELECT  NULL
                      FROM      prefix_codes
               WHERE      s.subscriber_id     LIKE prefix_code || '%'
                )
    ;
    

    This will tell you if at least a prefix code. It won't tell you exactly how many, or what they were.
    Your message, I'm guessing that there may be more than one, and you can deduct the subscriber_id itself, then the above query should work for you.

  • splitting the query string values

    all,
    I do not remember this, but my problem is that I have a collection of forwarded to my query as string values "X 234234: 23466 X: X 03287: X 457675 ', so my request should be able to divide each data value and use in the filter as below,

    Select * from emp where EmpID in ("X 234234: 23466 X: X 03287: X 457675")

    so, how can I divide each individual value and pass through the filter?

    Thank you.

    SELECT trim(x.column_value.extract('e/text () ')) CLO
    Of
    TABLE (XMLSEQUENCE (XMLTYPE (""
    || REPLACE ('1:2:3:4:6:7:8',': ','
    ')
    || ((("
    ").extract('e/e'))) x

    Try customizing the syntax above using the column in the function replace instead of my hard-coded string and pass it to the filter predicate using an in operator.

    Edited by: Chandrakaanth Ramamurthy on April 25, 2013 16:29

  • Normalize the input of query string to something intelligible

    I had a request for assistance since Friday on this, but since it is not answered yet, let's try your collective wisdom of the TopLiners to determine if I even do it properly!

    I have the URL with an assetid in the query string, which is a number. As well as this engage.companyname.com/landingpage?assetid=1

    Each number corresponds to a document in our download library. It is all together to dish up the correct asset and write an object (many - to a single contact) data indicating that the download happened. He writes assetid (number) on the data card.

    I wanted to be able to have something intelligible on the map data for a number of reasons. So I created an updated rule set where for each assetid, an asset name is written in the name field of the property (on the data object).

    I implemented a simple program in builder program to assess the totality of data objects and run this update rule set. But it does not work.

    So somewhere along the way I've done something wrong or missed a step (I have this puzzled through with TopLiners and EU documentation) or I am barking the wrong tree.

    I'll probably need to wait for support to come thanks to deconstruct what happened - but how I YOU think you?

    BTW, this program will do much more for data eventually cards but let's start first

    Here is the first part of the record, I have received support. I knew that the documentation followed before missing a bond - but only you know what you know, right?

    Thank you to contact Oracle Eloqua customer service, thank you for your business. I see you are trying to update the contacts with details of the documents that they have accessed (code of asset and asset name of the document) using of data maps and update rules. To start to help you, I want to confirm the problem you are experiencing. The specific part of the configuration that does not work, it is where you want your data cards to be updated with the name of the active partner when an asset what ID is added to data cards. Is this correct?

    I looked in the settings of your configuration and found that the way in which the affected step is configured does not update data cards. You currently have your updated program of the contacts, but he must update data cards and cannot access it with the current settings.

    To resolve this issue, please complete the following:


    Step 1: In your custom document library object, at the top right of the page click on custom object and select custom object Record Services. In the Custom Object Services window, click the arrow next to new data and select Edit the Actions of Service. In the edit the Actions of Service window, in the lower right corner, select Add processing steps.


    Step 2: In the window add a processing step, set the option Add a single processing step, by selecting Add to step in the program under the drop down list generator step. Click Add at the bottom right.


    Step 3: In the window new stages of treatment, under required parameters select the records of custom in the drop-down list object value. Then under Conditional settings, click on the search button program step next to the value field. In generator research program window, locate the 001. Standardize step name asset in your program via the search by name of the step or the name of the program. Select it and click Ok. In the window of new stages of treatment, under this treatment step is executed, select always. Click on save and close. You can now close the popup windows.

    The program should now be configured to update data with your active names cards using the conditions in your update rule. The next document in Topliners shows the screenshots to help you: http://topliners.eloqua.com/community/do_it/blog/2014/07/29/how-to-feed-custom-object-records-into-a-program


    After that I did these things, he still doesn't. Then they gave me this piece:


    I checked the settings that you have configured, and I saw that the stage of registration service custom object itself was not activated.

    To resolve this problem, open the custom of the document library object and open object custom registration Services. Then, click the down arrow next to new data and select activate the personal Service Record object. Shipments of new form must now update as you wish.

    To update existing records of custom object, please complete the following:

    Step 1: You must also configure the data service option changed with same parameters provided in the previous note and activate the service as explained above.

    Step 2: Then to process the records, in your custom object click Reporting at the top right of the page and select custom object records the data. In the data window of the custom object in the top left corner, click Actions and select check all records. Click export, and then select export to Excel to save an Excel document to use for re - download.

    Step 3: Return to the home page of your custom object, click on custom object in the top right of the page and select Download custom Object Records. Enter a descriptive name for the download and click Next. Click Browse and select the saved Excel file. Click on Upload and preview the data, and then click Next. Under field mappings, click automatic mapping fields to pre-populate the target fields and make changes if necessary, and then click Next. Click the checkbox for map data cards and under Add data at the stage of program entries, use the program generator search to search for and select 001. Standardize asset name then click OK and next.

    Step 4: If you want to reuse these settings later, under download select store these settings for re - use and enter a descriptive name for the saved settings file. Otherwise just click Finish. Your existing data maps should show active names within 30 minutes (which allows to program the durations of treatment).

    These steps will run maps of existing data through the update rule. If it still does not work, you will have to call for Support for further assistance via a screen sharing session. The phone for each region contact information can be found on our page please contact us at: http://www.eloqua.com/contact-us.html


    at that time, I saw him work. So excited! As I started to move my test scenario to production, it broke again. Sigh. Oh wouldn't it be nice if test/production in Eloqua was not quite as painful?

  • Query string of the URL - easy!

    It should be an easy question, but I'm deleting. I try to get the URL query string used to access my application. The Application object has a url, but it does not contain the query string. It must be stored somewhere as a URLVariables were opposed, but where? I searched the docs for URLVariables, but developers guide only talks about how configure them on a URL, not how to get from the current URL.

    in your project in the Navigator view folder...

    Look inside the html-template folder...

    This is the model that flex builder uses to generate the html file

  • Query string and CopyFile &amp; Delay()

    Hi to all engineers,

    I'm fresh in labwindows & you have some problem with it.

    When I'm programming a program that allows users to enter address CopyFile by themselves, I found congratulate him differs from C. Who commends should I use for the query string? I use GetCtrlVal (panelHandle, PANEL_fileA, & address), but when I run it, it says "too small argument.  And after request chain, how could I record it to the sourcefile targetfile address in CopyFile?

    Another problem is with the command Delay();  Once I use Delay(), such as Delay (3600), the system can work, but the other buttons will be jobless. I don't have other ways to fix it.

    Could U please give me some suggestions?

    Thank you very much

    Wenxin

    Well, here are some suggestions for you.

    With respect to the file name, you may be passing too short a string to retrieve user input in GetCtrlValCVI offers a macro so useful to express the size of a string containing a path, or can dimension chain as a char address [MAX_PATHNAME_LEN]; , then passing it with its simple name (which is in fact already address): GetCtrlVal (panelHandle, PANEL_fileA, address).

    In this case, another clue is to check if the user gave a fullpath, backslashes included: they should be doubled, because a single backslash is interpreted in C as an escape code.

    But perhaps the best suggestion is to let the user navigate to the right destination and give the filename FileSelectPopup wusing, which returns the full path that you can use without formatting, and other changes.

    Regarding the delay, it actually stops the execution of the program until the end of the given period of time, so you must develop your strategy of suspension in a different way. Indeed, a 1 hour stop is a "suspension of activity" more that a simple break, and you must treat her differently, especially if you want to maintain an intervention of the user during this period. For example, you can let the system run disable or hiding banned buttons or divide the interval in littler slices of time using ProcessSystemEvents eprmit handle other events: there are several discussions in the forum that the point of discussthis, so you could did research on it.

    But the first suggestion I can give you is to run the tutorials if you did not already, in order to study basic documentation that comes with CVI and carefully consider some of the examples installed with the environment, which can give you a better understanding of the instrument you use, and answer a few questions as you have.

Maybe you are looking for