L
L
lexstile2018-07-08 22:28:48
MySQL
lexstile, 2018-07-08 22:28:48

Can I write NULL to an integer/float field type?

I try to write, but for some reason it writes 0, but in my case it can be 0 as well.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kim, 2018-07-09
@lexstile

INT NULL DEFAULT NULL- can be NULL, default is NULL
INT NULL DEFAULT 0- can be NULL, default is 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question