3
4

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 5 years have passed since last update.

MySQLでゼロ除算すると結果はNULLになる

Posted at

NULLに首をひねるの巻

集計関数の中身でゼロ除算をしていた箇所でNULLっていた

$ mysql -e 'select 1/0;'

+------+
| 1/0  |
+------+
| NULL |
+------+

この場合ってのは「NULL(失われた情報)」のどれにあたるんでしょうか
http://codezine.jp/article/detail/532

3
4
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
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?