欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > 大学试题 > 计算机科学 > DB2数据库

单项选择题

在存储数据文件的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’

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题