Does your SQL support a limit select statement?
(mySQL does) Try:
select * from Table limit x,y
where x = starting row (0 being the first row)
and y = the number of rows to return.
If so:
select * from Table limit 0,1
should return only the first row
-Tom
"Zhang, David" wrote:
> HI, All
>
> Help: H0w to get frist row at SQl Server DB
>
> I have a huge table, but I only want to get the first row and I do not want
> use
> select * from Table to get WHOLE thing.
> Thnaks a lot in advance!
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html