创建goods表的从表orders,为goods_id字段设置外键约束。 字 段 数据类型 约 束 注 释 o_id INT(11) 主 键 订单编号 add_time DATETIME [br][/br] 添加时间 goods_id INT(11) 外 键 商品编号 TABLE orders( o_id (11) , add_time DATETIME, goods_id INT(11), goo_ord (goods_id) goods(id) );
创建goods表的从表orders,为goods_id字段设置外键约束。 字 段 数据类型 约 束 注 释 o_id INT(11) 主 键 订单编号 add_time DATETIME [br][/br] 添加时间 goods_id INT(11) 外 键 商品编号 TABLE orders( o_id (11) , add_time DATETIME, goods_id INT(11), goo_ord (goods_id) goods(id) );
查询orders表中是否存在goods_id为5的记录,如果存在,则查询goods表的所有记录
查询orders表中是否存在goods_id为5的记录,如果存在,则查询goods表的所有记录
查询goods 表id,name列数据:
查询goods 表id,name列数据:
查询goods表中所有id,name字段
查询goods表中所有id,name字段
写出下列SQL语句的功能DELETE FROM goods WHERE id>;5
写出下列SQL语句的功能DELETE FROM goods WHERE id>;5
下面关于“CREATE VIEW v_goods AS SELECT id, name FROM goods”描述错误的是
下面关于“CREATE VIEW v_goods AS SELECT id, name FROM goods”描述错误的是
从goods表中查询price值大于50,并且id值大于3的记录:
从goods表中查询price值大于50,并且id值大于3的记录:
查询有订单信息goods_id对应的所有商品的详细信息
查询有订单信息goods_id对应的所有商品的详细信息
A ccording to how people shop for the goods, consumer goods are divided into convenience goods, shopping goods and .
A ccording to how people shop for the goods, consumer goods are divided into convenience goods, shopping goods and .
Which<br/>categories of goods are excludable? ( ) A: private<br/>goods and club goods B: private<br/>goods and common resources C: public<br/>goods and club goods D: public<br/>goods and common resources
Which<br/>categories of goods are excludable? ( ) A: private<br/>goods and club goods B: private<br/>goods and common resources C: public<br/>goods and club goods D: public<br/>goods and common resources