SQL
EN & OF-operators
Zoeken…
Syntaxis
SELECTEER * UIT tabel WAAR (voorwaarde1) EN (voorwaarde2);
SELECTEER * UIT tabel WAAR (voorwaarde1) OF (voorwaarde2);
EN OF Voorbeeld
Heb een tafel
| Naam | Leeftijd | stad |
|---|---|---|
| Bob | 10 | Parijs |
| Mat | 20 | Berlijn |
| Maria | 24 | Praag |
select Name from table where Age>10 AND City='Prague'
geeft
| Naam |
|---|
| Maria |
select Name from table where Age=10 OR City='Prague'
geeft
| Naam |
|---|
| Bob |
| Maria |
Modified text is an extract of the original Stack Overflow Documentation
Licentie onder CC BY-SA 3.0
Niet aangesloten bij Stack Overflow