MySQL inserts in an integer field like "0" when putting "null"

0

I need to insert " null " in an integer field and when I give the order it saves it as 0 . Can someone explain to me what happens?

INSERT INTO tabla (id, campo) VALUES (1, null)

I have tried with and without quotes, with undefined and empty and nothing. I always get 0 . Greetings.

    
asked by Xanamar 30.11.2018 в 01:47
source

0 answers