How To Get Mysql Between Query
- Forums
- MYSQL
- How To Get Mysql Between Query
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 [2326], Last Updated: Mon Jun 24, 2024
Wallpaperama
Wed Mar 03, 2010
0 Comments
922 Visits
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?