How to query with wild card

hi friends
we have a requirement where if the user enters a letter in a field of selection-screen, he is supposed to get the fields details with its prefix entered in the selection-screen
eg: if user enters P and give execute
he needs to get the details of the particular field starting with P
how to code this
with regards
s.janagar

Hi,
Here wildcard character '%' can be used as pattern code. Character and then the '%' sign signifies that all values with character as first letter will be searched upon.
In your case use of like 'P%' in the where clause of the select statementr should solve the issue. e.g.,
select * from <tabname> into table <internal table> where <fieldname> like 'P%'.
searches all entries from table <tabname> and places them in internal table <internal table> where the field <fieldame> begin with P.
Thanks and Regards,
Sachin

Similar Messages

  • Dynamic query with wild card

    Hi,
    I have a table1 like below
    Id (NUMBER) , Keyword (VARCHAR2)
    1,A
    2,B
    3,C
    another table2
    name(VARCHAR2)
    Alice
    Bob
    Jack
    I need to write a stored procedure to check whether name of table 2 mactched any of the keyword char of table1. How to I write dynamic query in my PL/SQL stored procedure so that i can generate query similar to
    SELECT * from table2 where name like '%X%' where i need to replace X with the char in table1
    Please help.
    Thanks in advance,
    Marutha

    I need to write a stored procedure to check whether name of table 2 mactched any of the keyword char of table1You might simply join the tables:
    SQL> with table1  as
    select 1 id, 'A' keyword from dual union all
    select 2 id, 'B' keyword from dual union all
    select 3 id, 'C' keyword from dual
    table2 as (
    select 'Alice' name from dual union all
    select 'Bob' name from dual union all
    select 'Jack' name from dual
    select * from table1, table2 where name like '%' || keyword  || '%'
            ID KEYWORD NAME
             1 A       Alice
             2 B       Bob 
    2 rows selected.

  • How to create in house distribution provisional profile with wild card?

    Hi,
    I have enrolled for iOS enterprise distribution and created distribution certificate and App-id with wild card (e.g. com.companyname.*) from the portal (not from the xcode).
    When I am trying to create the in house distribution provisional profile from portal, it is not listing the App-id with wild card. I can only create the profile with explicit App-id. I checked with other enterprise account but they are able to create such profiles.
    How can I get in-house distribution profile linked with wild card App-id?
    Thank you.

    Did you find a solution for this? I encounter the same issue.

  • How can we delete wild card entry from table

    how can we delete wild card entry from table
    i want adjust the seeting for order type print out form
    like in 0id2 i have specified ordertupe nad print form in pm module
    but in oid3 fro palnner group if i make star it is not taking specific defiend field

    Hi....
       Follow these steps....
    1. Goto se16 and enter ur table name.. press F7 you can get selection screen now press F8...
    2. Click one perticuler record that u want to delete.. and press Change icon in App'toll bar...
    3. enter ?H at command field and again press enter...
    4. switch into classical debugger...
    5. write CODE at field ... it will gives EDIT as value...
    6. Change that EDIT into SHOW and press pencel icon just beside the SHOW...
    7. Now press F8...
    8. you can get delete option over there...
    Thanks,
    Naveen.I

  • QUERY ERROR WITH WILD CARD ON FORM WHEN NO DATA WWC-49102

    Portal 30985 ; database 9014 on sun solaris
    Same server : two databases 9014 : db1 with portal and db2(used here as remote database);
    Step1 ; Create public database link; db_link on db1 through Portal interface;
    Step2 ; create public synonym emp_syn for table emp@db_link through Portal interface;
    Step3 :create form based on emp_syn;
    the form is generated OK and also is behaving OK when Insert,Update,Delete from
    underlying table ;but when I am quering for 758% into the empno field I've got the same error:
    Error: An unexpected error occurred: ORA-00000: normal, successful completion (WWV-16016)
    No conversion performed for type NUMBER, value 758%. (WWC-49102) INSTEAD OF RETURNING EMPTY FORM(NO ROWS)
    I have tryed to query on other fields ;
    querying on a numeric field will give the above message;
    querying on a varchar or date field with or without wild card will raise the following error:Error: An unexpected error occurred: ORA-00000: normal, successful completion (WWV-16016)
    An unexpected error occurred: ORA-00000: normal,successful completion (WWV-16016).
    Lawrence

    Hi Mike,
    You can actually just check for the existence of the cell:
    var l_Cell = $x(pId);
    if (l_Cell)
    rest of the code to hide the column
    }As long as l_Cell refers to a valid page item, then the if test passes and the rest of your code can run.
    Andy

  • Terminal command to rename files in bulk with wild cards?

    I had a group of files that had double extensions in the name and I wanted to strip the second extension:
    myfile.r01.1
    myfile.r02.1
    so that the new names were
    myfile.r01
    myfile.r02
    In DOS this would be accomplished easily by using the command line:
    rename myfile.r??.1 myfile.r??
    In OS X Terminal/Bash shell, though I couldn't find a command that has similar function that allows the use of wild cards in the file names.
    I tried both the 'mv' abd 'cp' commands along the lines of:
    mv myfile.r??.1 myfile.r??
    but nothing worked, even using the * for the wildcard.
    I did manage to use the Automator to accomplish the task by using some of its Finder options, but really, a simple command line would have been simpler and easier than building an Automator workflow for this.
    Can anyone point me to a unix command that would have done what I am looking for, and the proper syntax for it?
    Thanks.

    From this page: http://www.faqs.org/faqs/unix-faq/faq/part2/section-6.html
    How do I rename "*.foo" to "*.bar", or change file names to lowercase?
    Why doesn't "mv *.foo *.bar" work? Think about how the shell
    expands wildcards. "*.foo" and "*.bar" are expanded before the
    mv command ever sees the arguments. Depending on your shell,
    this can fail in a couple of ways. CSH prints "No match."
    because it can't match "*.bar". SH executes "mv a.foo b.foo
    c.foo *.bar", which will only succeed if you happen to have a
    single directory named "*.bar", which is very unlikely and almost
    certainly not what you had in mind.
    Depending on your shell, you can do it with a loop to "mv" each
    file individually. If your system has "basename", you can use:
    C Shell:
    foreach f ( *.foo )
    set base=`basename $f .foo`
    mv $f $base.bar
    end
    Bourne Shell:
    for f in *.foo; do
    base=`basename $f .foo`
    mv $f $base.bar
    done
    Some shells have their own variable substitution features, so
    instead of using "basename", you can use simpler loops like:
    C Shell:
    foreach f ( *.foo )
    mv $f $f:r.bar
    end
    Korn Shell:
    for f in *.foo; do
    mv $f ${f%foo}bar
    done
    If you don't have "basename" or want to do something like
    renaming foo.* to bar.*, you can use something like "sed" to
    strip apart the original file name in other ways, but the general
    looping idea is the same. You can also convert file names into
    "mv" commands with 'sed', and hand the commands off to "sh" for
    execution. Try
    ls -d *.foo | sed -e 's/.*/mv & &/' -e 's/foo$/bar/' | sh
    A program by Vladimir Lanin called "mmv" that does this job
    nicely was posted to comp.sources.unix (Volume 21, issues 87 and
    88) in April 1990. It lets you use
    mmv '*.foo' '=1.bar'
    Shell loops like the above can also be used to translate file
    names from upper to lower case or vice versa. You could use
    something like this to rename uppercase files to lowercase:
    C Shell:
    foreach f ( * )
    mv $f `echo $f | tr '[A-Z]' '[a-z]'`
    end
    Bourne Shell:
    for f in *; do
    mv $f `echo $f | tr '[A-Z]' '[a-z]'`
    done
    Korn Shell:
    typeset -l l
    for f in *; do
    l="$f"
    mv $f $l
    done
    If you wanted to be really thorough and handle files with `funny'
    names (embedded blanks or whatever) you'd need to use
    Bourne Shell:
    for f in *; do
    g=`expr "xxx$f" : 'xxx(.*)' | tr '[A-Z]' '[a-z]'`
    mv "$f" "$g"
    done
    The `expr' command will always print the filename, even if it
    equals `-n' or if it contains a System V escape sequence like `c'.
    Some versions of "tr" require the [ and ], some don't. It
    happens to be harmless to include them in this particular
    example; versions of tr that don't want the [] will conveniently
    think they are supposed to translate '[' to '[' and ']' to ']'.
    If you have the "perl" language installed, you may find this
    rename script by Larry Wall very useful. It can be used to
    accomplish a wide variety of filename changes.
    #!/usr/bin/perl
    # rename script examples from lwall:
    # rename 's/.orig$//' *.orig
    # rename 'y/A-Z/a-z/ unless /^Make/' *
    # rename '$_ .= ".bad"' *.f
    # rename 'print "$_: "; s/foo/bar/ if <stdin> =~ /^y/i' *
    $op = shift;
    for (@ARGV) {
    $was = $_;
    eval $op;
    die $@ if $@;
    rename($was,$_) unless $was eq $_;

  • Remote ssh commands with wild cards

    I am trying to send a remote command via ssh - need to get a file listing in a directory using a wild card. However, the ssh command will not return results using a wild card:
    ssh [email protected] sudo ls -l /var/audit-files/201110* (directory requires root permission)
    /var/audit-files/201110*: No such file or directory
    I've tried quoting the command, the directory, the file names, etc - same results. It will only work with a specific name that exists, but not with a wild card. Is there a way to make this work?

    This is a rather complex situation. The problem is that you need to quote the '*' character; however, quoting it once may not be enough. Every time the command goes through a shell you'll strip out a set of quotes. It isn't clear to me how many times this will go through the shell but I'm guessing you'll have to at least double quote it.
    ssh [email protected] sudo ls -l "/var/audit-files/201110\*"
    I won't guarantee that this will work but it might. I don't know what the permissions are on /var/audit_files. If you need root to read that you may need to triple quote it. I've never had much luck getting the quotes right in complicated situations like this.

  • How to deal with video card problem on Thinkpad E420

    thinkpad E420 has GMA and a Special video card ATI READON HD 6630
    I installed Archlinux and xf86-video-intel
    then I go to the AMD offical web site and download video driver for linux64bit 11.8
    after I installed it
    I cannt login
    and report me the gnome was crashed
    can anybody help me with this problem?
    how to make the two card work
    or to disable my ATI card to cold down my laptop
    thanks ^^

    Maybe not out of the woods yet. I ordered a new video card and installed it today in slot 1 after removing the original one. When booting up I thought I was pressing the PRAM reset but had mistakenly held the "control" key down as well. Needless to say - no monitor start-up.
    After restarting a couple of times to no avail I realized my mistake and the next time correctly held the CommandOption+PR keys but interestingly it took a couple of restart chimes before it correctly brought up a gray screen. I then didn't release the keys in time and the next restart chimes the monitor stayed black - after one or two more continuous restart chimes I got the gray screen and everything booted up OK. I no longer have an error message for PCI Cards at System Profiler.
    But given that it seemed that the PRAM reset didn't consistently activate a signal to the monitor, I am a little anxious that I have been chasing the wrong problem - that maybe it's been a PRAM or other problem all along and not necessarily the monitor. I do have that case where the System Profiler gave me an error message for the PCI Cards selection under Hardware in System Profiler, but I'm left wondering if problem solved.
    Any easy way to debug PRAM - where is PRAM data stored?
    I will report back if I get another black screen on restart or wake up...

  • Passwing Parameters with Wild card Charactars

    Using Reports and Forms server, I am passing parameters from a ASP page to a Report.
    When I pass the full parameter to the report, like the word ORACLE, things are great.
    When I try to add a wild card to the parameter, like OR%, things don't work so well. I receive an error:
    "Error: The requested URL was not found, or cannot be served at this time. Oracle Reports Server CGI - Your URL contains badly-formed escapes."
    Any Help?
    Thanks
    Rao

    use hexadecimal value ex. for space it is %20 or u can use
    urlencode function

  • How to start with java card

    hello,
    i'm new to java card n know a bit of core java.. my superior of company asked me to get complete knowledge on java card.. iworked for 1 month on native cards..n know a bit of gsm 11.14. I want a favour.
    my queries:-
    a) how and from where should i start
    b) wat all basics i need to know &
    c)how to work on this card.
    ANY REPLY WILL BE APPRECIATED..
    Thanks

    a)
    - Look at Sun's tutorials on Java Card.
    - Z. Chen's book from Sun about smart cards gives you deeper knowledge about the Java Card technology.
    - Furthermore there is a great reference book about smart cards in general from W. Rankl.
    b)
    - Java: You should have basic understanding and knowledge about Java.
    - Java Card: is a subset of Java, but you need to be much more aware of the Java Card VM and RE.
    - You need to have some specifications at hand
    - Java Card API, VM and RE
    - GlobalPlatform
    - ISO 7816 and ISO 14443 for CL
    c)
    - There is a number of smart card operating systems.
    - I recommend the Java Card Open Platform (JCOP) from IBM/NXP. There is a good developer environment (JCOP Tools plugin for Eclipse) where you can start developing against a smart card SW simulator.

  • IMT - Error in query usind wild card character

    This with XML doc
    Whenever I use following query
    select * from temp where contains(col_1, '% within col_1_tag', 1)> 0 I get following error
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: interMedia Text error:
    DRG-50937: query too complex
    DRG-51030: wildcard query expansion resulted in too many terms
    If any one knows the solution to this problem then please come forward, that would br great help to me.
    null

    Hi,
      You can take a CHAR variable and concatinate Character and Wild character in it. give it in select query.

  • How to put the wild card search in the url

    I want to call a report use the url which inculd a page parameter 'LastName', to list all the person whoes LastName is begin with the certain character, like 'B'. So in the report sql query, i used
    Select Last_name, email, institution from members where Last_name like :lastname;
    and then i want to list all the 26 english character, let ueser click on it to retrieved the report.
    But when i test the URL like PORTAL_schemal.member_report.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=6&p_arg_names=_portal_max_rows&p_arg_values=6&p_arg_names=lastname&p_arg_values=B%, it always returns "no row returned".
    anyone can help?
    thanks a lot!!

    Try this :-
    PORTAL_schemal.member_report.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=6&p_arg_names=_portal_max_rows&p_arg_values=6&p_arg_names=lastname&p_arg_values=B%25
    Since % is a special characeter, you need to specify it as %<2-digit-ASCIIcode-in-hexadecimal>
    The ASCII code for % in hexa = 25
    Thus, you need to specify %25
    If you want to indicate the pattern %B% in the URL, it would be :-
    %25B%25

  • Set Bookmark Open Options to Open File with Wild Cards

    Hi there Guys. I need help with something. I work on manuals with various table of contents that contain bookmarks and a lot of them are basically cookie cutter.
    Here is what I am wondering:
    The bookmarks are in numerical order and need to link to an individual PDF
    file in the same folder:
    Example:
    Bookmark 1: "1. Office Hour Files for ABC company dated 10/01/07." needs to link to a file called "Office Hour Files for ABC company dated 10/01/07.PDF".
    Bookmark 2: "1. Healthcare Benefits for ABC company dated 09/30/07."
    needs to link to a file called "1. Healthcare Benefits for ABC company
    dated 09/30/07.PDF".
    ETC.
    Also, the file names -- not the bookmark names -- need to be shortened to 75 characters or less most of the time due to cd burning software. So soemtimes (or most of the time) the file name is much shorter than the original bookmark name.
    Is there code that I can use to batch process the Table of
    Contents file to find bookmark in TOC file that starts with "1. [bookmark name]" and open file the corresponding file in the same folder that starts with "1. [truncated bookmark name].PDF"
    then
    with "2. [full bookmark name]" and open file that starts with "2.
    [truncated bookmark name].PDF"
    and so on maybe through
    with "200. [full bookmark name]" and open file that starts with "200.
    [truncated bookmark name].PDF"
    THANKS SO MUCH... ANY HELP AT ALL WILL BE AWESOME. Also, let me know how
    much it would cost if you know someone who could write the code for me.
    PS: I can use ARTS-PDF software for batchprocessing. I use Acrobat 5.0.
    I really have no reason to upgrade for my purposes, but will if needed. I
    use a lot of keystroke features in 5.0 that are easier to use than in the
    later versions.
    later!!
    THANKS AGAIN!!!!! BE WELL
    KEN

    Hi Dylan,
    I have been searching along our forum, and found a similar question for using wildcards in selecting files. An active user (unclebump) replied on this request with a VI, with which you can select a folder on your computer which is scanned for certain files. I've adjusted this VI for selecting the CALDB_* files. Enclosed you will find this file (zipped) including my test folder.
    Maybe this will be helpfull for your application.
    Best regards,
    Peter Schutte
    Message Edited by Peter S on 10-14-2008 03:22 AM
    Attachments:
    File selecting.zip ‏12 KB

  • How to query with limited information

    It is possible to query if I dont know the table's and column's name?
    - I know the column's name but I dont know which table its belongs to, so how should I query? The purpose of this query to define which table its belongs to.
    - I know the data's name but I dont know which column and table its belongs to, so how should I query? The purpose of this query to define which table and column its belongs to.
    - I only know the database and schema where all the datas belongs to
    Any suggestion to solve this problems?
    Regards,
    Andy

    andy wrote:
    It is possible to query if I dont know the table's and column's name?
    - I know the column's name but I dont know which table its belongs to, so how should I query? The purpose of this query to define which table its belongs to.
    - I know the data's name but I dont know which column and table its belongs to, so how should I query? The purpose of this query to define which table and column its belongs to.
    - I only know the database and schema where all the datas belongs to
    Any suggestion to solve this problems?
    Regards,
    Andy
    select
       table_name
    from all_tab_cols
    where column_name = :your_name
    and owner = :your_schema_nameSeems like a reasonable starting point.

  • Needing assistance with wild card in Crystal 11

    I need a report that captures only certain Employers in our database.   I've used the following criteria with no luck.
    (CH_EMP_NAME)  in ["ACADEMY", "BRISTOL", "WELLMONT"]
    Please advise
    Thanks
    Jack

    Hi Jack,
    The following may help you.
    if {Employee.Last Name} like ["Brid\","chan\"] then // open square bracket of "Brid" , "* chan *" close square bracket
    "B"
    else "C"
    in the group expert select formula field to group.
    Thanks,
    Praveen G

Maybe you are looking for