サーチ…
構文
SELECT * FROMテーブルWHERE(条件1)AND(条件2);
SELECT * FROMテーブルWHERE(条件1)OR(条件2);
AND ORの例
テーブルを用意する
| 名 | 年齢 | シティ |
|---|---|---|
| ボブ | 10 | パリ |
| マット | 20 | ベルリン |
| メアリー | 24 | プラハ |
select Name from table where Age>10 AND City='Prague'
贈る
| 名 |
|---|
| メアリー |
select Name from table where Age=10 OR City='Prague'
贈る
| 名 |
|---|
| ボブ |
| メアリー |
Modified text is an extract of the original Stack Overflow Documentation
ライセンスを受けた CC BY-SA 3.0
所属していない Stack Overflow