针对上一题给出的数据库bookshop,若要给所有姓“刘”的客户的订单金额增加10%,以下操作正确的是( )。
A:update sales set total_amt=total_amt*1.1 where cust_name in (select cust_name from customer where cust_name like '刘%')
B:update sales set total_amt=total_amt*1.1 where exists (select * from customer where sales.cust_name=cust_name and cust_name like '刘%')
C:update sales set total_amt=total_amt*1.1 from customer,sales where sales.cust_name=customer.cust_name and customer.cust_name like '刘%'
D:update sales set total_amt=total_amt*1.1 where exists (select * from customer where sales.cust_name=customer.cust_name and customer.cust_name like '刘%')
发布时间:2024-05-07 19:31:40