Multiple String Selection Arguments


Last Updated:

  1. niccloud

    niccloud New Member This Topic's Starter

    Joined:
    Sep 29, 2010
    Messages:
    3
    Likes Received:
    0
    Hi i am new to android, i am trying to do a multiple string selection argument and i seem to be getting some problems.
    I was hoping someone here can enlighten me. The code is written below
    Code (Text):
    1. cursor = db.rawQuery("SELECT _id, name, category FROM outlet WHERE mall_id = ?  ORDER BY name",
    2.                 new String[]{""+mallId});
    3.        
    4.         cursor = db.rawQuery("SELECT _id, name, category FROM outlet WHERE name LIKE ? ORDER BY name",
    5.         new String[]{"%" + searchOutlet.getText().toString() + "%"});
    Thanks
     

    Advertisement

Share This Page

Loading...