How To Get Mysql Between Query

RegisterLogin
How To Get Mysql Between Query
Post Description: do you wan to do quieries in your sql database between columns in your databases we will show you how you can do this using a php sql query string
Tags: how, to, get, mysql, between, query
This Post Was Posted On Mar 03, 2010 By Wallpaperama #3226
today i learned how to send a query to select between values

for example, i have 50 user_id and i want to select only between 25 and 30 so to do that, i can send this query:

$sql = "SELECT user_id FROM mytable WHERE user_id BETWEEN 25 AND 30";

as you can see from this query, we searched for any user_id between the numbers of 25 and 30 so any user_id between those numbers in the mytable it will be selected. so getting and querying your information in you db is easy steps;

does that help?
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Sun Dec 18, 2011 9:48 pm
Powered by: Webune Forums V3