使用Alter table语句可以()。
A、同时修改字段数据类型和长度
B、修改计算列
C、产量 float
D、同时删除字段和字段约束
相似题目
-
在oracle数据库中,关于使用AlTER TABLE进行修改表的定义,下列描述正确的是?()
A . 使用该命令可以修改列的名称
B . 使用该命令可以修改列的数据类型
C . 使用该命令可以修改表的名称
D . 使用该命令可以修改列的精度
-
Consider the following statement on a RANGE partitioned table: ALTER TABLE orders DROP PARTITION p1, p3; What is the outcome of executing the above statement?()
A . A syntax error will result as you cannot specify more than one partition in the same statement
B . All data in p1 and p3 partitions are removed and the table definition is changed
C . All data in p1 and p3 partitions are removed, but the table definition remains unchanged
D . Only the first partition (p1) will be dropped as only one can be dropped at any time
-
Before a Flashback Table operation, you execute the following command: ALTER TABLE employees ENABLE ROW MOVEMENT; Why would you need this to be executed?()
A . Because row IDs may change during the flashback operation
B . Because the object number changes after the flashback operation
C . Because the rows are retrieved from the recycle bin during the flashback operation
D . Because the table is moved forward and back to a temporary during the flashback opertio
-
默认约束是在CREATE TABLE或ALTER TABLE语句中定义的,删除表的时候默认约束也随之删除了。
A . 正确
B . 错误
-
Which two data types can be converted to LOBs using an ALTER TABLE… MODIFY command?()
A . RAW
B . LONG
C . VARCHAR
D . LONG RAW
-
在ALTER TABLE中,()用来添加新字段;()用来修改已有字段。
-
语句drop table可以()。
A . 删除一张表
B . 删除一个视图
C . 删除一个索引
D . 删除一个游标
-
假设在数据库中创建了用户test,需要为其授予CREATE ANY TABLE系统权限,可以使用如下()语句。
A . GRANT CREATE ANY TABLE test
B . GRANT CREATE ANY TABLE TO test
C . TAKE CREATE ANY TABLE TO test
D . ALTER CREATE ANY TABLE TO test
-
在oracle数据库中,一张表通过带有INITIALLY IMMEDIATE的语句来创建,通过执行ALTER TABLE来启用之前关闭的VALIDATE功能,下面那两项描述了该语句的印象?()
A . 如果存在有违反约束的行将执行失败
B . 将启用约束验证从事物的开始到结束
C . 在该表上将阻止insert,update,delete操作,如果操作违反约束的数据
D . 不验证已经存在表中的数据
-
You are shrinking the SCOTT.EMP table by executing the ALTER TABLE SCOTT.EMP SHRINK SPACE CASCADE statement. What is a prerequisite for shrinking the SCOTT.EMP table?()
A . You must enable the block change tracking feature.
B . You must have enable the flashback feature.
C . You must use the OMF in your database.
D . You must define the tablespace of the SCOTT.EMP table for automatic segment space management.
-
在ALTER TABLE中,指定某列不可用,可是使用哪个关键字?()
A . UNUSED
B . SET UNUSED
C . DISABLE
D . NOUSE
-
Before a Flashback Table operation,you execute the following command: ALTER TABLE employees ENABLE ROW MOVEMENT; Why would you need this to be executed?()
A . Because row IDs may change during the flashback operation
B . Because the object number changes after the flashback operation
C . Because the rows are retrieved from the recycle bin during the flashback operation
D . Because the table is moved forward and back to a temporary during the flashback opertio
-
使用ALTER TABLE不可以( )
-
修改数据库使用SQL 语句alter,删除数据库使用delete。
-
在“学生”表中删除“备注”字段 :ALTER TABLE 学生 __________ 备注
-
在SQL中,若要删除一个表,应使用的语句是:__________TABLE。
-
使用SQL的CREATE TABLE语句建立数据库表时,为了说明主关键字应该使用关键词 KEY。使用SQL的CREATE TABLE语句建立数据库表时,为了说明主关键字应该使用关键词 KEY。
-
在一个数据表中添加完整性约束定义,应使用ALTER-SQL语句中的【 】子句。
-
实验七 MySQL数据完整性 一、实验目的 1. 了解约束的各种类型 2. 掌握使用SQL语句CREATE TABLE定义约束的方法 3. 掌握使用SQL语句ALTER TABLE增加或删除约束的方法 4. 体验用ENUM和SET数据类型取代其它数据库中的CHECK约束 二、实验环境 教学实验选用MySQL数据库,提供的MySQL和SQLyog软件仅适用于已安装Windows XP或更高版本Windows操作系统的计算机。请下载“实验5脚本.rar”,准备好该实验所需要的数据源。 三、实验内容及步骤 用图形化客户端工具SQLyog完成如下示例操作。(要求验证) MySQL支持的常用约束类型有6种: 主键(primary key)约束 外键(foreign key)约束 非空(not NULL)约束 唯一性(unique )约束 默认值(default)约束 自增约束(auto_increment) 1. 主键(primary key)约束 ① 在SQLyog中利用sql指令在mydb
-
alter table语句可以用于在已有的表中添加、删除或修改列。()
是
否
-
在ACCESS2010中,ALTER语句可以用来删除表的字段()
是
否
-
ALTER语句可以用来修改数据库表结构。
A:对
B:错
-
Before a Flashback Table operation, you execute the following command:ALTER TABLE employees ENABLE ROW MOVEMENT;Why would you need this to be executed?()
A. Because row IDs may change during the flashback operation
B. Because the object number changes after the flashback operation
C. Because the rows are retrieved from the recycle bin during the flashback operation
D. Because the table is moved forward and back to a temporary during the flashback operation
-
13、如果学生表st是使用以下SQL语句创建的:CREATE TABLE st (sno CHAR(4) not null,sn CHAR(8),sex CHAR(2),age INT);下面的SQL语句中可以正确执行的是()
A.INSERT INTO st(sno,sex,age) VALUES (″s9″,″男″,17)
B.INSERT INTO st(sn,sex,age) VALUES(″李安齐″,″男″,20)
C.INSERT INTO st(sex,age)VALUES(″男″,20)
D.INSERT INTO st(sno,sn)VALUES(″s9″,″安齐″,16)