博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
数据库 alter 语句的使用----百度2016研发工程师笔试题(六)
阅读量:2386 次
发布时间:2019-05-10

本文共 389 字,大约阅读时间需要 1 分钟。

对数据表进行修改的语句正确的是()

正确答案: B D   你的答案: A D (错误)

alter table employee add memo
alter table employee drop column age
alter table employee add column
alter table employee drop age

答案是B
         如需在表中添加列,请使用下列语法:
ALTER TABLE table_nameADD column_name datatype

要删除表中的列,请使用下列语法:

ALTER TABLE table_name DROP COLUMN column_name
mysql的删除列可以省略掉COLUMN关键字
ALTER TABLE table_name DROP  column_name
向表中添加列时注意要加上列的数据类型

转载地址:http://egnab.baihongyu.com/

你可能感兴趣的文章
Layer Four Traceroute
查看>>
Hardening guide for Apache 2.2.15 on RedHat 5.4 (64bit edition)
查看>>
Microsoft Outlook Web Access (OWA) version 8.2.254.0 information disclosure vulnerability
查看>>
STP mitm attack idea
查看>>
Month of PHP Security - Summary
查看>>
近期将要购买的图书
查看>>
nginx Directory Traversal Vulnerability
查看>>
Linux下apache+svn+ssl完美结合搭建安全版本控制平台
查看>>
Nginx 0.8.35 Space Character Remote Source Disclosure
查看>>
showrun的cissp经验谈
查看>>
6月4日要买的书
查看>>
nginx Remote Source Code Disclosure and Denial of Service Vulnerabilities
查看>>
Anti-sec安全培训 部分试看视频
查看>>
FreeBSD kernel NFS client local vulnerabilities
查看>>
JXplorer 的简单使用
查看>>
如何启用 LDAP 签名 Windows Server 2008 中
查看>>
获取ngnix,apache,php,mysql的编译参数 zz from xi4oyu
查看>>
使用ettercap嗅探ssh口令
查看>>
Linux下的内网反弹实例
查看>>
Command execution with a MySQL UDF
查看>>