You need to create a table named ORDERS that contain four columns:1. an ORDER_ID column of number data type2. aCUSTOMER_ID column of number data type3. an ORDER_STATUS column that contains a character data type4. aDATE_ORDERED column to contain the date t

题目

You need to create a table named ORDERS that contain four columns:1. an ORDER_ID column of number data type2. aCUSTOMER_ID column of number data type3. an ORDER_STATUS column that contains a character data type4. aDATE_ORDERED column to contain the date the order was placed.When a row is inserted into the table, if no value is provided when the order was placed, today‘s date should be used instead.Which statement accomplishes this? ()

A. CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);

B. CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);

C. CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);

D. CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);

E. CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);

F. CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE DEFAULT SYSDATE);


相似考题
更多“You need to create a table named ORDERS that contain four columns:1. an ORDER_ID column of ”相关问题
  • 第1题:

    You’reanetworkadministerandyouissuethecommand(showport3/1)onanEthernetport.Toyoursurpriseyounoticeanon-zeroentryinthe’Giants’column.Whatcouldbethecauseofthis?()

    A.IEEE802.1Q

    B.IEEE802.10

    C.MisconfiguredNIC

    D.Userconfiguration

    E.Alloftheabove


    参考答案:A

  • 第2题:

    【单选题】对于建立在数据库上的DDL触发器,常用的激活DDL触发器的事件不包括()

    A.Create_Table,Alter_Table,Drop_Table

    B.Create_View,Alter_View,Drop_View

    C.Create_Procedure,Alter_Procedure,Drop_Procedure

    D.Rollback


    Rollback

  • 第3题:

    如果要让某个用户能够在所有模式下建表应该授予此用户哪个权限?

    A.create table

    B.create any table

    C.create all table

    D.create * table


    create any table

  • 第4题:

    命令在当前设计中创建一个时钟。

    A.create_clock

    B.create clock

    C.clock_name

    D.clock name


    create_clock

  • 第5题:

    16、MySQL数据库中,通常将用户写入对应的权限表来控制访问权限的,以下属于用户权限得选项()。

    A.User

    B.db

    C.table_priv

    D.columns_priv


    grant;insert

  • 第6题:

    设置多列布局的属性值为()。

    A.columns-width

    B.column-count

    C.column-gap

    D.column-rule


    A 解析:Columns属性返回或设置一个值,以决定控件是水平还是垂直滚动以及如何显示列中的项目。Columns属性值为0时,控件为垂直滚动;Columns属性等于1时,则列表框呈多行多列显示: Columns属性值大于1时,为水平滚动,Columns属性值的数量决定在控件中的可见宽度内显示列的数量。Columns属性用来确定列表框的列数。