Hello
I have a one table and following field in table like id , name, product. I want to add the value in table after than find some product like in table 10 product exist then i want to find out product from 6-10 id please define how to find out?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
NitinRank #455 · 5.5K reputationPosted Mar 26, 2015, 5:24 AM EDT
You can do this using this query:
Select * from tablename where id in(6,7,8,9,10)
OR
Select * from tablename where id between 6 and 10
Raja TRank #685 · 3.5K reputationPosted Sep 14, 2015, 5:16 AM EDT
FROM table_name
WHERE column_name BETWEEN value1 AND value2;
WHERE ID BETWEEN 6 AND 10;
Raja TRank #685 · 3.5K reputationPosted Sep 14, 2015, 5:32 AM EDT
FROM table_name
WHERE column_name IN (value1,value2,...);
WHERE ID in (6,7,8,9,10);
Abhishek KumarRank #1,735 · 872 reputationPosted Sep 14, 2015, 5:00 AM EDT