How can i fetch the last value inserted into sqlite Database
<p>I have a doubt to be clarified. How can i fetch the last value inserted into sqlite DB. I need code for that.I tried using query like this:</p>

<pre><code>SELECT uname,umessage,utime FROM chatmessage ORDER BY utime DESC limit 1;
</code></pre>

<p>Where am i doing wrong?? I need help in this issue.</p>

<p>Thanks in advance.</p>
