Home > Database > Mysql Tutorial > body text

Oracle中Insert语句的总结

WBOY
Release: 2016-06-07 17:06:22
Original
1572 people have browsed it

在Oracle中,insert语句的使用:1、insert into 表1(列名1,列名2,hellip;hellip;) values(值1,值2,hellip;hellip;)2、insert

在Oracle中,insert语句的使用:

1、insert into 表1(列名1,列名2,……) values(值1,值2,……)

2、insert into 表1(列名1,列名2,……)

select  列名1,列名2,…… from 表2

3、insert all  --无条件添加

into 表1 values(列名1,列名2,……)

into 表2 values(列名1,列名2,……)

select  列名1,列名2,…… from 表3

4、insert all  --如果条件满足,,则添加

when 条件1 then into 表1 values(列名1,列名2,……)

when 条件2 then into 表1 values(列名1,列名2,……)

select  列名1,列名2,…… from 表3

5、insert first  --对于第一个满足的条件,则添加

when 条件1 then into 表1 values(列名1,列名2,……)

when 条件2 then into 表1 values(列名1,列名2,……)

select  列名1,列名2,…… from 表3

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template