数据库系统概念:数据库的修改
Posted junjie2019
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了数据库系统概念:数据库的修改相关的知识,希望对你有一定的参考价值。
public 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 */
以上是关于数据库系统概念:数据库的修改的主要内容,如果未能解决你的问题,请参考以下文章