我正在尝试通过 MySQL 控制台将 XML 文件导出到数据库 MySQL。
我正在使用以下命令:
\.C:/..../dbmysql.sql
LOAD XML LOCAL INFILE 'C:..../docente.xml' 进入表格文档;
在此之后它给了我这个警告:
Warning|1263|Column Set to default value;Null supplied to NOT NULL columns
我该如何解决这个问题?
最佳答案
让我为您谷歌一下,使用关键字“mysql warning 1263 Null supplied to NOT NULL columns
”,这是一个相关的:
"The warning message only occurs when a column is not null constrained and the column name fails to match an XML tag attribute in the source file. No error or warning is raised when a column isn’t not null constrained under the same scenario." [MacLochlainns Weblog]
根据文章,您需要确保列的 XML 标记名称以区分大小写的方式与 MySQL 表中的列名称匹配。
关于mysql - 将 XML 导入 MySql - 警告代码=1263,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30005132/