SQL
Operatori AND & OR
Ricerca…
Sintassi
SELECT * FROM table WHERE (condition1) AND (condition2);
SELECT * FROM table WHERE (condition1) OR (condition2);
E O Esempio
Avere un tavolo
| Nome | Età | Città |
|---|---|---|
| peso | 10 | Parigi |
| Stuoia | 20 | Berlino |
| Maria | 24 | Praga |
select Name from table where Age>10 AND City='Prague'
dà
| Nome |
|---|
| Maria |
select Name from table where Age=10 OR City='Prague'
dà
| Nome |
|---|
| peso |
| Maria |
Modified text is an extract of the original Stack Overflow Documentation
Autorizzato sotto CC BY-SA 3.0
Non affiliato con Stack Overflow