update query not working for android
<p>i have a simple table with three fields 
_id
name 
email</p>

<p>i am trying to update a record name by searching for email like</p>

<pre><code>db.execSQL("update contacts set email='"+email+"' where name='"+name+"'");
</code></pre>

<p>even while running this with query it is not working</p>

<pre><code>ContentValues cv=new ContentValues();
    cv.put("name",n);
    dbase.update(table, cv, "email="+e,null);
</code></pre>

<p>can we run a query without primary key or what is the error in this.in the earlier case the application stops running.
appreciate any help in this.</p>
