forum

Home / DeveloperSection / Forums / SQL queries cleaner better in jquery

SQL queries cleaner better in jquery

Manoj Bhatt188506-Nov-2014

I have something like this:

SELECT cars.brand, cars.id FROM cars WHERE cars.brand =4 LIMIT 1;SELECT cars.brand, cars.id FROM cars WHERE cars.brand =24 LIMIT 1;SELECT cars.brand, cars.id FROM cars WHERE cars.brand =29 LIMIT 1;

If will be more queries it will be very long. How do this in the other way, in one line? But important is for me speed. cars.brand = X AND LIMIT X is a variable so it maybe changes.


Updated on 06-Nov-2014

Can you answer this question?


Answer

1 Answers

Liked By