MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:dunk fordyce Date:January 15 2003 1:41pm
Subject:Re: select a range
View as plain text  
if your using numbers , which i guess you are, you do not need to use LIKE.

$query="SELECT * FROM inner-multipli
  WHERE
  cod_in >=$cod_int1
  AND
  cod_int <=$cod_int2";


bruno peracchio wrote:
> Hi
> I'm newbie
> 
> I have to find from xvalue to yvalue; I have written:
> $query="SELECT * FROM inner-multipli
> WHERE cod_in
> LIKE =>'%$cod_int1%'
> AND cod_int
> LIKE <='%$cod_int2'=;
> This not work; how can I do?
> 
> Thanks in advance
> 
> bruper
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <mysql-thread130011@stripped>
> To unsubscribe, e-mail
> <mysql-unsubscribe-him=dunkfordyce.co.uk@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
> 


-- 

-------------------------------------------------------------------
===================================================================
----------- :::====   :::  :::====   :::====   :::===   :::=======
----------- :::  ===  :::  ::   ===  ::   ===      ===  ::: === ===
----------- ===  ===  ===     ====      ====    =====   === === ===
----------- ===  ===  ===   ===       ===          ===  ===     ===
----------- =======   ===  ========  ========  ======   ===     ===
========================================www.dunkfordyce.co.uk======


Thread
select a rangebruno peracchio15 Jan
  • Re: select a rangedunk fordyce15 Jan
  • Re: select a rangePaul DuBois15 Jan