Thanks Eric.
Joanne

 



________________________________
From: Eric Minbiole <[email protected]>
To: General Discussion of SQLite Database <[email protected]>
Sent: Wednesday, April 1, 2009 12:02:18 PM
Subject: Re: [sqlite] select the first 2 rows

> Hi all,
> I have a big table and I want only select the first 2 rows.
> I have tried this :
> select top 2 from table;
> but it doesn't work! Any help please.
> JP

Use a LIMIT clause instead of TOP:

SELECT * FROM table LIMIT 2;

http://www.sqlite.org/lang_select.html
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users



      
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to