When importing data Mysql -data truncated for column ..

When you import Mysql database, also found that how to import data does not go in, error: Check the table definition structure: you can see the comm-defined types to double the original is because the database file:









  1. 7369    smith    clerk    7902    1981-03-12    800.00    NULL    20
  2. 7499    allen    salesman    7698    1982-03-12    1600.00    300.00    30
  3. 7521    ward    salesman    7698    1983-03-12    1250.00    500.00    30
  4. 7566    jones    manager    7939    1981-03-12    2975.00    NULL    20

NULL is the default string type, so there are a type of error. Can replace all 0.00 you can import into NULL

Reproduced in: https: //my.oschina.net/u/204616/blog/545433

Guess you like

Origin blog.csdn.net/weixin_34185364/article/details/91990184