CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Posts
    60

    Need a particular row value from table.

    Hi,
    How do i get the nth row value in a table in sql server. For example i wanted a particular field value of the 10 row in a table how do i get it. is there any query for that. Please help me out in this.Thanks in advance.
    Regards
    Vinoth

  2. #2
    Join Date
    Nov 2004
    Location
    Poland
    Posts
    1,355

    Re: Need a particular row value from table.

    Code:
     DECLARE @field INT 
     
    SELECT top 10 @field=field from MyTable
    SELECT @field field
    Hope that helps

  3. #3
    Join Date
    Jul 2005
    Posts
    1

    Re: Need a particular row value from table.

    How would one do this in Access 2002?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured