单项选择题
在存储数据文件的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’ -
单项选择题
设置日志清理时间为5天的命令,正确的是()。
A.set expire_logs_days =120
B.set global expire_logs_days =120
C.set expire_logs_days =5
D.set global expire_logs_days =5
