title: Why does MySQL inserts blank data in not null fields
body: <p>I just wanted to know if somebody could explain this. </p>
  
  <p>I was just testing my code and didn't check for empty input fields (I know I have to, but just testing).. In my database table, all the fields are NOT NULL, and I was expecting a exception because I wasn't inserting anything.. But it turns out that MySQL inserts all with blank values, also, from MySQL workbench is the same thing..</p>
  
  <p>Is there a way to prevent this? (From a MySQL perspective)</p>