Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sous requete sql

SELECT *
FROM `table`//for one row
WHERE `nom_colonne` = (
    SELECT `valeur`
    FROM `table2`
  ) 

SELECT *
FROM `table`//for mutiples rows
WHERE `nom_colonne` IN (
    SELECT `valeur`
    FROM `table2`
  ) 
 
PREVIOUS NEXT
Tagged: #sous #requete #sql
ADD COMMENT
Topic
Name
3+9 =