• 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: 21969
36
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...
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!