The create table userdata_school ( Id int primary key auto_increment,//system id Name a varchar (20),//user name The PWD varchar (20),//password Phonenum varchar (100), );
Mysql is excuse me this table, such as when I insert the not give phonenum assignment, so at the time of reading phonenum, the system will give me a null. I'm a little hate this empty, do you have experience of predecessors, what should I do better?
CodePudding user response:
If you don't want to be a null value, so what do you think about it, what do you want a value, then this value is set to the default value is ok