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`
)
Code Example |
---|
Sql :: run mysql xampp shell |
Sql :: import file mysql terminal |
Sql :: create table mysql |
Sql :: mysql update set sum |
Sql :: show tables sql |
Sql :: add user mysql wordpress |
Sql :: query concatenate |
Sql :: postgres power |
Sql :: SQLite order random |
Sql :: oracle add datafile to tablespace |
Sql :: SELECT NUMBER OF rows for all tables oracle |
Sql :: sql auto date |
Sql :: fetch first 5 characters of the string in sql |
Sql :: mysql insert from local csv |
Sql :: like sql |
Sql :: search db for table name |
Sql :: mysql remote connection command line |
Sql :: create in sql |
Sql :: brew start postgres manual |
Sql :: delete all content in table mysql |
Sql :: oracle list duplicates |
Sql :: oracle saurce code |
Sql :: insert value in identity |
Sql :: mysql between date range |
Sql :: select top 10 rows in sql |
Sql :: how to see the query of a view in mysql |
Sql :: sql update null values |
Sql :: postgres foreign key multiple columns |
Sql :: oracle drop temporary table |
Sql :: how to change column name in sql |