当前位置:Gxlcms > 数据库问题 > 数据库系统概念:数据库的修改

数据库系统概念:数据库的修改

时间:2021-07-01 10:21:17 帮助过:24人阅读

class DataBase { public static void main() { } } /* 3.9 数据库的修改 3.9.1 删除 3.9.2 插入 3.9.3更新 SQL提供case结构,我们可以利用它在一条update语句中,执行前面的两种更新: 原代码: update instructor set salary = salary * 1.03 where salary > 10000; update instructor set salary = salary * 1.05 where salary <= 10000; 改进后: update instructor set salary = case when salary <=10000 then salary * 1.05 else salary * 1.03 end */

 

数据库系统概念:数据库的修改

标签:1.0   base   更新   代码   利用   sql   struct   static   结构   

人气教程排行