All,
Say I have the following in my database as INT values:
1004
1013
1020
I wrote a query to get the Min value so it looks like this:
That works fine, however now I want to write a query that says my current value is 1004, now I want to select the next highest value of 1013. How can I do that?
Thanks in advance.
Say I have the following in my database as INT values:
1004
1013
1020
I wrote a query to get the Min value so it looks like this:
PHP Code:
$qry = "Select MIN(zip_code) from zips";
Thanks in advance.
Comment