创建product表;
执行:
select prod_id,p1_num,p1_price,p1_num * p1_price as sum from product where order_num = 1000;
输出:
订单号为1000的商品名,购买数量,单价,总价。
创建product表;
执行:
select prod_id,p1_num,p1_price,p1_num * p1_price as sum from product where order_num = 1000;
输出:
订单号为1000的商品名,购买数量,单价,总价。