alter table sales modify(unit_prices null)
alter table sales modify(unit_prices not null)
alter table sales add(unit_prices null)
alter table sales add(unit_prices not null)
第1题:
一个学生信息表student,要求它由学号sno,姓名sname,性别sex,年龄age,4个属性组成。现在对这个现有的表增加一个入学时间cometime字段为日期型,下列语句正确的是
A.ALTER TABLE student ADD cometime DATE NOT NULL;
B.ALTER TABLE student ADD cometime DATE;
C.ALTER TABLE student DROP cometime DATE NOT NULL:
D.ALTER TABLE student MODIFY cometime DATE;
第2题:
如果希望更新表authors中的first_name列为非空,那么可以使用哪个语句?()
第3题:
为表TEST中ID列添加主键约束的语法是()
第4题:
在SQL Server中,修改表中列定义的正确的SQL语句是()。
第5题:
You just issued the following statement: ALTER TABLE SALES DROP COLUMN PROFIT. Which of the following choices identifies when the column will actually be removed from Oracle?()
第6题:
You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty.Which statement accomplishes this task?()
第7题:
Examine the following statement that is used to modify the primary key constraint on the SALES table: SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE; Which three statements aretrue regarding the above command()
第8题:
发出下列语句:alter table sales drop columm profit;何时从Oracle中实际删除列?()
第9题:
You are modifying a table named Product in a SQL Server 2005 database. You want to add a new column named FriendlyName to the Product table. A friendly name for each product will be stored in this column. The table currently contains data. The sales department has not yet created a friendly name for each product. FriendlyName is a required value for each product. You want to add this new column by using the least amount of effort. What should you do?()
第10题:
执行语句后立即删除
发出alter table drop unused columns命令之后
发出alter table set unused columns命令之后
发出alter table modify命令之后
第11题:
Column definitions cannot be altered to add DEFAULT values.
A change to the DEFAULT value affects only subsequent insertions to the table.
Column definitions cannot be altered to add DEFAULT values for columns with a NUMBER data type.
All the rows that have a NULL value for the SALARY column will be updated with the value 5000.
第12题:
Immediately following statement execution
After the ALTER TABLE DROP UNUSED COLUMNS command is issued
After the ALTER TABLE SET UNUSED COLUMN command is issued
After the ALTER TABLE MODIFY command is issued
第13题:
删除学生表STUD中关于学号XH必须取惟一值的约束。实现该功能的正确SQL语句是 ______。
A.ALTER TABLE STUD ADD XH UNIQUE
B.ALTER TABLE STUD MODIFY XHUNIQUE
C.ALTER TABLE STUD DROP UNIQUE(XH)
D.ALTER TABLE STUD MODIFY UNIQUE(XH)
第14题:
下列有关NOT NULL约束条件的表述中,哪两项是正确的?()
第15题:
要向雇员表中的部门标识列添加FOREIGNKEY约束条件以引用部门表中的标识列,应该使用哪个语句()
第16题:
如下能正确执行的语句是()
第17题:
Which statement adds a constraint that ensures the CUSTOMER_NAME column of the CUSTOMERS table holds a value?()
第18题:
Examine the following statement that is used to modify the constraint on the SALES table: SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE; Which three statements are true regarding the above command()
第19题:
The EMPLOYEES table has these columns:LAST_NAME VARCHAR2(35) SALARY NUMBER(8,2) HIRE_DATE DATEManagement wants to add a default value to the SALARY column. You plan to alter the table by using this SQL statement:ALTER TABLE EMPLOYEES MODIFY (SALARY DEFAULT 5000);Which is true about your ALTER statement?()
第20题:
你要关闭SALES表中UNIT_PRICE列的非NULL约束。下列哪个语句能完成这个操作?()
第21题:
alter table sales modify(unit_prices null)
alter table sales modify(unit_prices not null)
alter table sales add(unit_prices null)
alter table sales add(unit_prices not null)
第22题:
alter table authors add first_name not null
alter table authors modify first_name not null
alter table authors alter first_name not null
alter table authors drop first_name not null
第23题:
Define the new column as NULL.Update the FriendlyName column to the same value as the productName column. Alter the FriendlyName column to be NOT NULL.
Define the new column as NOT NULL with a default value of ’Undefined.’
Define the new column as NULL. Use application logic to enforce the data constraint.
Define the new column as NULL with a default value of ’Undefined.’
第24题:
ALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name IS NOT NULL;
ALTER TABLE customers MODIFY CONSTRAINT cust_name_nn CHECK customer_name IS NOT NULL;
ALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn NOT NULL;
ALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn IS NOT NULL;
ALTER TABLE customers MODIFY name CONSTRAINT cust_name_nn NOT NULL;
ALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name NOT NULL;