0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SQLの比較演算子、論理演算子

Posted at

今回は、SQLで使用する比較演算子と意味を書きます。

比較演算子 意味
= 左右の値が等しい
< 左辺は右辺より小さい
> 左辺は右辺より大きい
<= 左辺は右辺の値以下
>= 左辺は右辺の値以上
<> 左右の値が等しくない

こんな感じです。

論理演算子はAND・OR・NOTがあり、NOT>AND>ORの順番で優先度が高く先に評価されます。

SQLは4つの命令 SELECT UPDATE DELETE INSERT でほとんど成り立つみたいですが、やはり覚えるべき箇所は多そうですね!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?