MySQL Forums
Forum List  »  Newbie

Re: How to select a subset of non-consecutive values with BETWEEN
Posted by: Paul McArdle
Date: June 28, 2005 09:09PM

could be if band_img.number is a number you don't need single quotes around number1 & 2

"select * from band_img where number between " + $number1 + " and " + $number2 );

Options: ReplyQuote


Subject
Written By
Posted
Re: How to select a subset of non-consecutive values with BETWEEN
June 28, 2005 09:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.