Sqllite String append in android?
<p>Below i have mention my code.i want String append but this is not working .Please give me solution for me?</p>

<pre><code>public String fetchresturantID(String resturantID)
{
    String query = "select  "+resturantID+" From " + TABLErestaurant;

    mCursor =db.rawQuery(query, null);
    StringBuffer buf = new StringBuffer();
    if (mCursor.moveToNext()) {

        buf.append(mCursor.getString(0));
        String str = buf.toString();
        System.out.println("**************"+str);

    }

   return buf.toString();
 }
</code></pre>
