单项选择题
使用LOAD DATA...INFILE 命令后报错“Data truncated for colum...”,出现的原因可能是()。
A.插入数据的过程中违反了唯一性约束
B.数据存储的文件中列的类型与数据库中表的类型不一致
C.数据存储的文件中的主键值在数据库中已经存在
D.数据存储的文件中部分字段存在NULL 值
相关考题
-
单项选择题
在存储数据文件的student.txt 文本中,存储的内容形式如下:“2012110708”,19,“张三”“2012110710”,20,“李四”将上述的数据导入数据表:学生(学号,姓名,年龄),正确的命令应为()。
A.load data infile ’student.txt’into table 学生fields terminated by ’,’optionally enclosed by ’"’lines terminated by ’\n’
B.load data infile ’student.txt’into 学生fields terminated by ’,’optionally enclosed by ’"’lines terminated by ’\n’
C.load data infile ’student.txt’into table 学生(学号,年龄,姓名)fields terminated by ’,’optionally enclosed by ’"’lines terminated by ’\n’
D.load data infile ’student.txt’into 学生(学号,年龄,姓名)fields terminated by ’,’optionally enclosed by ’"’lines terminated by ’\n’ -
单项选择题
获取当前二进制日志文件所在的位置的正确命令是()。
A.show master status
B.show master logs status
C.show binary status
D.show binary logs status -
单项选择题
删除MySQL 数据库中在mysql-bin.000003之前的二进制日志文件,正确的命令是()。
A.从MySQL 数据库中的data 目录下手动删除文件mysql-bin.000001、mysql-bin.000002
B.purge binary logs to ’mysql-bin.000002’
C.purge binary logs to ’mysql-bin.000003’
D.purge binary logs before ’mysql-bin.000003’
