I have the following table structure:

badge_id and interface_id are the main keys .
When I try to perform an INSERT operation with only badge_id , I expected it to fail, but instead, interface_id will default to 0 .

I run the following versions:

Can someone explain why it defaults to zero? Is that not so? Thanks in advance.
timkg source share