Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql select where field like in list

SELECT * from mytable where field REGEXP '1740|1938|1940'; 

SELECT * from mytable where field REGEXP 'I|am|looking|for|these|strings';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #select #field #list
ADD COMMENT
Topic
Name
3+9 =