• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To extract column elements from a particular position onwards "MYSQL"

 
sandeep ep
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to everyone,
I want to extract column elements from a particular position .

like this

MYSQL table:
Sn Balance
12 550
13 450
14 360
15 800
16 456
here i want to have values from 13 onwards.then what shall i do
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't say whether the "sn" column is ordered in any way, although it is ordered in your example. And it's impossible to guess whether it might be just from its name.

Assuming that it is ordered:
 
Neerav Narielwala
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
$sql = "select * from table where sn >= 13";

Will get your answer...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic