How to use % wildcard in jdbc plz help me

Hello all,
try
     PreparedStatement st=dbcon.prepareStatement("select * from stud2  where ename=? ");
st.setString(1,ename+"%");
ResultSet rs=st.executeQuery();
while(rs.next())
out.println("<td>");
out.println(rs.getString(2));//this field is for name
out.println(rs.getString(3));//this is for addresss
}catch(Exception e){}This code is in servlets,and iam using MS-ACCESS as database.
in this way iam trying this code , usage of %wild card but iam not getting the right anser, i want the anser if i will type any letter it should search the database and display me all names of that letter
plz help me solving this problem
vidya.

PreparedStatement ps = con.prepareStatement("select blah from blah where blah like ?");
ps.setString(1, "a%"); // everything that starts with 'a'
rs = ps.executeQuery();

Similar Messages

  • Dear friends I mistakenly erased my iphone5 by Find my iphone app. Now I want to recover my pics and videos. In icloud I am not finding any icon folder which used to be there. I am using ios 7. Plz help me what to do. Thanks

    Dear friends I mistakenly erased my iphone5 by Find my iphone app. Now I want to recover my pics and videos. In icloud I am not finding any icon folder which used to be there. I am using ios 7. Plz help me what to do. Thanks

    Shakirefl wrote:
    ... I mistakenly erased my iphone5 ...
    See  How to Restore from a Backup   Here...
    http://support.apple.com/kb/ht1766

  • How to use wildcards in ABAP query where condition?

    Hi,
    Please tell me how to use wildcards in ABAP qurey where condition.
    e.g. select * from mara where matnr = * (wildcard we need to use.
    Thanks & Regards,
    Gaurav T

    Do you want to query asterix * ?
    select * from mara where matnr = '*'.  "then just put it in apstrophes
    or you want certain part of string be used as * ?
    select * from mara where matnr like '%*'  "then use % sign before it
    or maybe you want something like this
    select * from mara where matnr like '%1' . "then it will look for all materials having '1' inside it
    Regards
    Marcin

  • How to use triger in jdbc

    Could anyone give me a example to show me how to use triger in JDBC, please.
    Thanks

    JDBC doesn't enter into it. You can find examples and tutorials about triggers with google. Google will even fix the typo "triger" to "trigger" for you :-)

  • My iCloud passward forgat . How to delete old id ? Plz Help me..

    My iCloud passward forgat . How to delete old id ? Plz Help me..

    Hi Subrata,
    Unfortunately, you cannot delete it. You would have to enter the password in order to delete the old Apple ID from your device. If you do not remember the password, please visit: https://iforgot.apple.com/ If this doesn't work, please directly contact Apple.
    With kind regards,
    David

  • HT5622 hi sir i will create apple id but at the time of sign in it reply this id cannot use, at review show payment method and another one is code how i can use with out payment plz help me

    how to use apple with out payament methods

    Either redeem an iTunes gift card; use a credit card; or follow the directions here to create a new Apple ID without a credit card:
    http://support.apple.com/kb/ht2534

  • HT204150 I have 2 iphones registered under same account, but both phones had different contacts in them, somehow icloud duplicated, exchanged them. and deleted could not restore the contacts, how do I restore it? plz help

    I have 2 iphones registered under same account, but both phones had different contacts in them, somehow icloud duplicated, exchanged them, and I turned off the icloud on one of them, while doing that it asked me if I want to keep them on my phone or not. I pressed the one saying not to keep them. I deleted all of them and could not restore the contacts, how do I restore it? when I sign in to my icloud account online it only shows the contacts that were on the other phone. plz help

    I access a personal iPhone and iPad, and a business iPhone with the same Apple ID.
    The iPhone's passcode lock feature is completely separate from another iPhone or iOS device.
    All apps, all paid and free apps include DRM protection which is tied to the Apple ID that was used to download the apps. If some apps were downloaded with one Apple ID and then a new Apple ID is created, in order to download an app update that was installed with the original Apple ID requires using that Apple ID and password.

  • How to use setCLOB with JDBC.

    Hi,
    from oracle jdbc document, i know how to use getClob method. but i wonder how to insert a new record included a clob field (setClob). but clob is an interface.
    it seem that it can not be successful to use setclob directly.
    my friend has a way : insert an empty clob into database, then seek this record, and update it with full info again.
    please help me!
    thank in advance.
    wu jianhua.

    A few ways:
    1. Use the LOBs got from a ResultSet, for example,
    Clob x = rs.getClob(1); //you get an oracle.sql.CLOB object
    pstmt.setClob(1, x);
    2. use oracle.sql.CLOB
    public static CLOB empty_lob() throws SQLException;
    creates an empty lob.
    public static BLOB createTemporary(Connection conn, boolean isCached, int
    duration);
    creates temp lob.
    Those methods create object of type oracle.sql.CLOB.
    refer to Oracle jdbc doc for this.

  • How to use a portal jdbc system to delete or insert by IExecution.execute

    hi everyone:
    I create a jdbc system in portal. Then I use following codes to query a table
    IQuery query = client.newQuery();
    query.execute("SELECT * FROM [Categories]");
    It is fine.
    Now, I wanna do insert or delete operation. I can't use the IQuery object. I think it is only for query and it is Deprecated. I find there is a method: IExecution.execute(IOperation). But I don't know how to use that method. Can I insert/delete records using that method? The last question is how to control the sql transaction by that IExecution object.
    thanks
    elliot

    Hi,
    I followed the interface framework to complete a query.
    The code is shown under
    How to Modify DB Records Using JDBC Connector FrameWork
    But I got this exception and I don't know how to go further:
    com.sapportals.connector.execution.ExecutionException: Exception during execution of SQL statement at com.sapportals.jdbcconnector.execution.objects.JDBCExecution.execute(JDBCExecution.java:118) at iview.Simple.doContent(Simple.java:43) at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209) at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at

  • How to use the User Dictionary---Pls help me......

    User dictionary how to use?
    1. I have typed all the words in the Oxford hyphenation dictionary and saved text file.
    2. I have created new dictionary in the preference file.
    3. i have imported all the typed words in the created dictionary file.
    4. I have faced the problem. User dictionary is not supporting properly. Can i disable the System dictionary.
    5. Most of the words are hyphenating by system dictionary only
    Can any one help me out. how to handle this.

    One thread is sufficient, please. If noone responds it means they don't have an answer for you.
    If you can help the OP, please see his original post at http://forums.adobe.com/message/2169036#2169036
    I am locking this thread.

  • Do you know how to use Flash? can you help?

    hi all,
    Do you know how to use Flash?
    I have been trying for months to find someone who can use
    flash, who can help me, with no luck.
    I need my links on my website updating, just a couple of them
    need the text changing as i need
    to change the name/title of some pages. I have tried to do it
    myself (using a trial version of flash,
    as i dont have flash). the site was made using dreamweaver.
    the files are .FLA
    and before anyone says 'get the person who made the site to
    do it'....He wont, ive tried.
    when i tried to change them myself i cocked them up and now
    they dont work at all, see my
    website and you will see; www.stevenallenphotography.co.uk
    so, if you can use flash please can you help me? all i need
    doing is the file updating with some
    of the link titles/names changing, i.e. one link is
    'exhibitions' which needs changing to 'published work',
    please get in touch if you can help.
    thanks,
    steven.

    I used divx in my site once its really very nice! but i use it in different host not .mac...try this divx web player with video selector code --------<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
    width="640" height="480"
    codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
    <embed id="np_plugin" type="video/divx"
    width="640" height="480"
    pluginspage="http://go.divx.com/plugin/download/">
    </embed>
    </object>
    <script type="text/javascript">
    // This code detects which browser we are
    // running into (IE or others) and assigns
    // the correct element (object or embed) to
    // the "plugin" variable, that we will use.
    var plugin;
    if(navigator.userAgent.indexOf('MSIE') != -1)
    plugin = document.getElementById('ie_plugin');
    else
    plugin = document.getElementById('np_plugin');
    // This is a local JS function used by our form
    // element to call the plugin functions using
    // the "plugin" variable that we defined above
    function openNewMovie()
    var url = document.forms['videoSelector'].movie.value;
    if(url != '')
    plugin.Open(url);
    </script><form name="videoSelector">
    Choose a video to play:
    <select name="movie" onChange="javascript:openNewMovie();">
    <option value="" selected>Video Selector
    <option value="http://www.yourdomain.com/folderdivx/name.divx">title1 divx
    <option value="http://www.yourdomain.com/folderdivx/name.divx">title2 divx
    </select>
    </form> ---------------------
    Hope this help!

  • How do i check in? plz help

    i have the nokia lumia 610 i am trying to 'check in' which is in the 'me' section on the home screen. When i try to create a check in for my home it says that it can not do that, why is this do i have to turn something on? ect.
    plz help x

    Hi busterboyo100,
    Welcome to the Forum.
    Did you allow "check in" to access and use your location?
    Pfrancoise.
    If this post has helped you to solve this issue, please press the "accept as solution" icon. Kudos would always be appreciated.

  • How to use third party jdbc drivers ?

    Hi,
    Im new to sun one app server.i have some existing CMP
    bean (currently testing under J2EE RI).database used is
    SQL server 2000 and using a 3 rd party JDBC Driver.
    my question is. if i switch to sun one app server, do i need
    anyother third party stuff to support CMP using SQL
    Server? (other than the exisiting jdbc driver andSQL Server).
    I read somewhere that in sun one we need to get a
    persistance manger from the 3 rd part. is it necessary?
    can i use my plain jdbc driver with the builtin persistance
    manager of sun one app server?. how can i do that ?
    thanks in advance
    -mr ex

    Hi,
    Persistence manager from 3rd party is not required.You
    can use the built in persistence manager of Sun one application server.
    You can refer the following link for creating new persistence manager
    http://docs.sun.com/source/816-7156-10/agj2eres.html#47595
    Get back in case of issues

  • My friends put cydia on my ipod and other stuff from it like something who slide your apps differently how can i remove the both, plz help ..???

    My friend put cydia on my ipod and other stuff from it like something who slide your apps differently. How can I remove the both, I really want, plz help ...?

    They hacked it and may have caused damage to your device. Jailbreaking also voids your warranty and support from Apple. To restore to a clean state, restore in Recovery Mode: http://support.apple.com/kb/HT1808

  • IPhone 4 screen wont go to sleep when using the phone. Plz help

    hello
    when using my cell phone the screen wont go blank. this came out of nowhere and its been happening for about a month.
    i dont have a screen protector or a phone protector either. i reset the phone. restored the phone. turned it on/off about 10 times already and nothing.
    plz help. thanks

    The proximity sensor is above the receiver. Hard to see on the black model, but if you look at the white one, you'll see the hole in the glas they left open for it. It can't be fixed by users, get it serviced. Apple - Support - Service Answer Center

Maybe you are looking for

  • Unable to generate single byte character when used TO_SINGLE_BYTE

    Hi All, Can anyone help me in getting the output for the below single byte query. When tried it says INVALID NUMBER. Step 1 :- select RAWTOHEX('2Z') from DUAL; -- 325A Step 2:- SELECT TO_SINGLE_BYTE(CHR('325A')) FROM DUAL; The above query when execut

  • Verizon Ripoff Machine

    We have had a plan that included five phone numbers. Three members of our plan wanted to create their own plan with additional features. I called a Verizon representative on our about March 14, 2011, to receive instructions on how to let our three me

  • CS6 Acrobat Pro requires activation -- AGAIN!

    I bought CS6, installed it and ran it happily for two months, and then suddenly it said that Acrobat Pro was not activated.  I posted a note in this Forum and was told to reinstall it with the same original activation key, which I did.  It worked. No

  • Text builds in KN3

    I am trying to attain a number of build effects in Keynote. Basically what I'm trying to do is very similar to this clip http://www1.us.dell.com/content/products/category.aspx/xpsnb2?c=us&cs=19&l=en&s= dhs (I know its Dell, and doesn't even look that

  • Help, can't find link to download Elements 11 trial on the downloads page.

    All roads lead to this page, but I can't locate a link on it.... anyone had any luck? Thanks. http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us&PID=2159997