网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
A user needs to create a trigger that will update table T2 whenever a row is added to table T1. Assuming the user has all appropriate privileges for table T2, which privilege is required on table T1 to create the trigger?()
A

REFERENCES

B

SELECT

C

UPDATE

D

ALTER


参考答案

参考解析
解析: 暂无解析
更多 “单选题A user needs to create a trigger that will update table T2 whenever a row is added to table T1. Assuming the user has all appropriate privileges for table T2, which privilege is required on table T1 to create the trigger?()A REFERENCESB SELECTC UPDATED ALTER” 相关考题
考题 ( 35 ) “ 把查询 sc 表和更新 sc 表的 grade 列的权限授予用户 user1 ” 的正确 SQL 语句是A ) GRANT SELECT , UPDATE ( grade ) ON TABLE sc TO user1B ) GRANT SELECT sc , UPDATE sc . grade TO user1C ) GRANT SELECT , UPDATE ON TABLE sc . grade TO user1D ) GRANT SELECT ON TABLE sc , UPDATE ON TABLE sc(grade) TO user1

考题 实现“取消用户USER4对学生表STUD中学号(XH)的修改权限”这一功能的SQL语句是( )。A.REVOKE UPDATE (XH) ON TABLE FROM USER4;B.REVOKE UPDATE (XH) ON TABLE STUD FROM PUBLIC ;C.REVOKE UPDATE (XH) ON TABLE STUD FROM USER4;D.REVOKE ALL PRIVILEGES ON TABLE STUD FROM USER4;

考题 “把查询SC表和更新SC表的9rade列的权限授予用户user”的正确SQL语句是( )。A)GRANT.SELECT sc, UPDATE sc.grade TO userB)GRANT SELECT, UPDATE (grade) ON TABLE sc TO userC)GRANT SELECT, UPDATE ON TABLE sc.grade TO userD)GRANT SELECT ON TABLE sc, UPDATE ON TABLE sc(grade) TO user

考题 You are the DBA for an academic database. You need to create a role that allows a group of users to modify existing rows in the STUDENT_GRADES table. Which set of statements accomplishes this? () A. CREATE ROLL registrar; GRANT MODIFY ON student_grant TO registrar; GRANT registrar to user 1, user2, user3B. CREATE NEW ROLE registrar; GRANT ALL ON student_grant TO registrar; GRANT registrar to user 1, user2, user3C. CREATE ROLL registrar; GRANT UPDATE ON student_grant TO registrar; GRANT ROLE to user1, user2, user3D. CREATE ROLL registrar; GRANT UPDATE ON student_grant TO registrar; GRANT registrar to user 1, user2, user3;E. CREATE registrar; GRANT CHANGE ON student_grant TO registrar; GRANT registrar;

考题 A user needs to create a trigger that will update table T2 whenever a row is added to table T1. Assuming the user has all appropriate privileges for table T2, which privilege is required on table T1 to create the trigger?()A.REFERENCESB.SELECTC.UPDATED.ALTER

考题 A user utilizing an alias to update a subset of columns in a table must have UPDATE privileges on which of the following DB2 objects?() A.TableB.ColumnsC.Table and AliasD.Columns and Alias

考题 Given the following statements:CREATE TABLE tab1 (col1 INT); CREATE TABLE tab2 (col1 INT); CREATE TRIGGER trig1 AFTER UPDATE ON tab1 REFERENCING NEW AS new1 FOR EACH ROW MODE DB2SQL INSERT INTO tab2 VALUES(new1.col1); INSERT INTO tab1 VALUES(2),(3);What is the result of the following query? SELECT count(*) FROM tab2;()A.3B.2C.1D.0

考题 Exhibit:UPDATE EzonexamConsolidatedSET District = ‘Mexico’WHERE RtvID = 45You work as database administrator at Ezonexam.com. You handle one SQL Server 2000 computer and one database.When users run the query in the exhibit above the receive the following error message:Server: Mrh3612, Level 16, Stats 1, Line 1View or function ‘EzonexamConsolidated’ is not updateable because itcontains aggregates:How should you enable the query to run?A.Create a non-normalized EzonexamConsolidated table and populate the table with data from the base tables.B.The appropriate users should be granted UPDATE permissions on each base table.C.To enable updates on the composite tables create an INSTEAD OF trigger on the view.D.On each base table add a cascading update trigger.

考题 约束可以通过哪条命令创建()A、SET TABLEB、CREATE TABLEC、USE TABLED、UPDATE TABLE

考题 Given the following statements: CREATE TABLE tab1 (col1 INT); CREATE TABLE tab2 (col1 INT); CREATE TRIGGER trig1 AFTER UPDATE ON tab1 REFERENCING NEW AS new1 FOR EACH ROW MODE DB2SQL INSERT INTO tab2 VALUES(new1.col1); INSERT INTO tab1 VALUES(2),(3); What is the result of the following query? SELECT count(*) FROM tab2;()A、3B、2C、1D、0

考题 A user needs to create a trigger that will update table T2 whenever a row is added to table T1. Assuming the user has all appropriate privileges for table T2, which privilege is required on table T1 to create the trigger?()A、REFERENCESB、SELECTC、UPDATED、ALTER

考题 A user utilizing an alias to update a subset of columns in a table must have UPDATE privileges on which of the following DB2 objects?()A、TableB、ColumnsC、Table and AliasD、Columns and Alias

考题 Which two operations can be performed on an external table()A、Create a view on the table.B、Create an index on the table.C、Create a synonym on the table.D、Add a virtual column to the table.E、Update the table using the UPDATE statement.F、Delete rows in the table using the DELETE command.

考题 Examine the following steps performed on a database instance: 1. The DBA grants the CREATE TABLE system privilege to the SKD user with ADMIN OPTION. 2. The SKD user creates a table. 3. The SKD user grants the CREATE TABLE system privilege to the HR user. 4. The HR user creates a table. 5. The DBA revokes the CREATE TABLE system privilege from SKD.  Which statement is true after step 5 isperformed()A、The table created by SKD is not accessible and SKD cannot create new tables.B、The tables created by SKD and HR remain, but both cannot create new tables.C、The table created by HR remains and HR still has the CREATE TABLE system privilege.D、The table created by HR remains and HR can grant the CREATE TABLE system privilege to other users.

考题 Which two operations can be performed on an external table()A、Create a view on the table.B、Create an index on the table.C、Create a synonym on the table.D、Add a virtual column to the table.E、Update the table using the UPDATE statement.F、Delete rows in the table using the DELETE command

考题 User A issues the command: LOCK TABLES pets READ; Which command can User B execute against the pets table?()A、UPDATE pets…B、SELECT….FROM petsC、INSERT INTO pets…D、ALTER TABLE pets…

考题 You are responsible for managing the database schema for an order entry application in a SQL Server 2005 database. After a design review, a member of the development staff asks you to add a new column named CommissionRate to the Product table. Because the actual commission rates for all products are not known at this time, each product has a default commission rate of 12 percent. The rate can be modified as necessary. You add the new column. You need to configure the table to assign the default value as efficiently as possible. What should you do?()A、 Create an INSERT trigger to assign the default value to each item in the table. B、 Create a CHECK constraint to validate the data and to assign the default value to each item in the table. C、 Create an UPDATE trigger to update the default value for each new item in the table. D、 Create a DEFAULT constraint to assign the default value specifying the WITH VALUES argument.

考题 Your company uses a SQL Server 2005 database. Customer data from your trading partners is imported into the Customers table every night. You need to ensure that the customer record is updated if it already exists in the Customers table. If the record does not exist, the data needs to be inserted into the Customers table. What should you do?()A、 Create a FOR trigger. B、 Create an INSTEAD OF trigger. C、 Create an AFTER trigger. D、 Create a DDL trigger.

考题 单选题Your company uses a SQL Server 2005 database. Customer data from your trading partners is imported into the Customers table every night. You need to ensure that the customer record is updated if it already exists in the Customers table. If the record does not exist, the data needs to be inserted into the Customers table. What should you do?()A  Create a FOR trigger. B  Create an INSTEAD OF trigger. C  Create an AFTER trigger. D  Create a DDL trigger.

考题 单选题Examine the following steps performed on a database instance:  1:The DBA grants the CREATE TABLE system privilege to the SKD user with ADMIN OPTION.  2:The SKD usercreates a table.  3:The SKD user grants theCREATETABLE system privilege to the HR user.  4:The HR user creates a table.  5:The DBA revokes the CREATE TABLE system privilege from SKD.  Which statement is true after step 5 is performed()A The table created by SKD isnot accessibleand SKD cannot create new tables.B The tables created by SKD and HR remain, but both cannot create new tables.C The table created by HR remains and HR still has the CREATE TABLE system privilege.D The table created by HR remains and HR can grant the CREATE TABLE system privilege to other users.

考题 单选题A user utilizing an alias to update a subset of columns in a table must have UPDATE privileges on which of the following DB2 objects?()A TableB ColumnsC Table and AliasD Columns and Alias

考题 单选题“把查询sc表和更新sc表的grade列的权限受予用户user1”的正确SQL语句是()。A GRANT SELECT,UPDATE(grade)ON TABLE sc TOuser1B GRANT SELECT sc,UPDATE sc,grade TO user1C GRANT SELECT,UPDATE ON TABLE sc.grade TO user1D GRANT SELECT ON TABLE sc,UPDATE ON TABLE sc(grade)TO user1

考题 单选题Examine the commands executed in the following sequence:  1:SQL CREATE ROLE mgrrole;  2:SQL GRANT create user,select any table,connect,resource TO mgrrole;  3:SQL GRANT select,update ON sh.sales TO mgrrole;  4:SQL CREATE ROLE ceo IDENTIFIED BY boss;  5:SQL GRANT mgrrole,drop any table,create any directory TO ceo;  6:SQL GRANT ceo TO mgrrole;  Which statement is true about the above commands()A The commands execute successfully.B Command 6 produces an error because of circular role grant.C Command 5 produces an error because a role cannot be granted to another role.D Command 3 produces an error because the MGRROLE role already contains system privileges.E The table created by HR remains and HR still has the CREATE TABLE system privilege.F The table created by HR remains and HR can grant the CREATE TABLE system privilege to other users.

考题 单选题The following triggers were defined for table TAB1 in the order shown:CREATE TRIGGER trig_a AFTER UPDATE ON tab1 FOR EACH ROW UPDATE sale_tab SET sale_date = CURRENT DATE; CREATE TRIGGER trig_b AFTER UPDATE ON tab1 FOR EACH STATEMENT UPDATE invoice_tab SET invoice_date = CURRENT DATE; CREATE TRIGGER trig_c AFTER UPDATE ON tab1 FOR EACH ROW UPDATE shipping_tab SET ship_date = CURRENT DATE; CREATE TRIGGER trig_d AFTER UPDATE ON tab1 FOR EACH STATEMENT UPDATE billing_tab SETbilling_date = CURRENT DATE;If an event occurs that causes all of them to activate, which trigger will be activated first?()A TRIG_AB TRIG_BC TRIG_CD TRIG_D

考题 单选题You execute the following set of commands to create a database user and to grant the system privileges in your production environment.  SQL CREATE USER user01  IDENTIFIED BY oracle DEFAULT TABLESPACE tbs1  TEMPORARY TABLESPACE temp PROFILE default  /  SQL GRANT create session, create table TO user01; While executing the command to create a table, the user gets the following error message and the CREATE TABLE.. command fails.  ERROR at line 1: ORA-01950: no privileges on tablespace  What could be the possible reason for this error message?()A The tablespace TBS1 is full.B The user is not the owner of the SYSTEM tablespace.C The user does not have quota on the TBS1 tablespace.D The user does not have sufficient system privileges to create table in the TBS1 tablespace.E The user does not have sufficient privileges to create table on the default permanent tablespace.

考题 单选题You want to create a temporary table while executing a procedure in a form. Which statement is true?()A You cannot create a table form within Forms. B You must use the FORMS_DDL built-in to create the table. C You must use the DBMS_DYNAMIC_DDL package to create the table. D You can write the CREATE TABLE statement directly into the trigger.

考题 单选题Examine the following steps performed on a database instance: 1. The DBA grants the CREATE TABLE system privilege to the SKD user with ADMIN OPTION. 2. The SKD user creates a table. 3. The SKD user grants the CREATE TABLE system privilege to the HR user. 4. The HR user creates a table. 5. The DBA revokes the CREATE TABLE system privilege from SKD.  Which statement is true after step 5 isperformed()A The table created by SKD is not accessible and SKD cannot create new tables.B The tables created by SKD and HR remain, but both cannot create new tables.C The table created by HR remains and HR still has the CREATE TABLE system privilege.D The table created by HR remains and HR can grant the CREATE TABLE system privilege to other users.

考题 单选题User A executes the following command to update the TRANS table)  SQL UPDATE B.trans SET tr_amt=tr_amt+500 WHERE c_code=’C005’;  Before user A issues a COMMIT or ROLLBACK command, user B executes the following command on the TRANS table:   SQl ALTER TABLE trans MODIFY (tr_type VARCHAR2 (3));  What would happen in this scenario?()A The transaction for user A is rolled back.B The ALTER TABLE command modifies the column successfully.C The ALTER TABLE command fails due to the resource being busy.D The ALTER TABLE command waits until user A ends the transaction.