title: How to get first/top row of the table in Sqlite via Sql Query
body: <p>I need to fetch the first/top row of a table in a Sqlite database. </p>
  
  <p>But my program throws an SQLException "Sqlite Syntax Error: Syntax error near '1' " for the query that I am using:</p>
  
  <pre><code>SELECT TOP 1 * 
  FROM SAMPLE_TABLE
  </code></pre>
  
  <p>That I guess is a syntax particularly for MS SQL SERVER and MS ACCESS. Right now I am using.</p>
  
  <pre><code>SELECT *
  FROM SAMPLE_TABLE
  LIMIT 1
  </code></pre>
  
  <p>What is the best solution for this problem?</p>