资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

oracle数据插入

1、插入完整行

主要从事网页设计、PC网站建设(电脑版网站建设)、wap网站建设(手机版网站建设)、响应式网站开发、程序开发、微网站、小程序设计等,凭借多年来在互联网的打拼,我们在互联网网站建设行业积累了丰富的网站制作、网站设计、网络营销经验,集策划、开发、设计、营销、管理等多方位专业化运作于一体,具备承接不同规模与类型的建设项目的能力。

格式:insert into table(

                        xxx_id,

                        xxx_name,

                        ……

                        xxx_address)

                   valus(

                        'xxxxxx',

                        'xxxxxx',

                        ……

                        'xxxxxx');

示例:         

insert into custnew (

                        cust_id,

                        cust_name,

                        cust_address,

                        cust_city,

                        cust_state,

                        cust_zip,

                        cust_country,

                        cust_contact,

                        cust_email)

                   values(

                          '1000000008',

                          'zhang',

                          'shitonglu street',

                          'shijiazhuang', 

                          'sjz',

                          '3333',

                          'china',

                          'sun',

                          '10110@126.com');

2、插入检索出的数据

insert into table1(

                        xxx_id,

                        xxx_name,

                        ……

                        xxx_address

                  select

                        xxx_id,

                        xxx_name,

                        ……

                        xxx_address

                   from table2;

示例:

insert into customers (

                        cust_id,

                        cust_name,

                        cust_address,

                        cust_city,

                        cust_state,

                        cust_zip,

                        cust_country,

                        cust_contact,

                        cust_email)

                  

                 select cust_id,

                        cust_name,

                        cust_address,

                        cust_city,

                        cust_state,

                        cust_zip,

                        cust_country,

                        cust_contact,

                        cust_email

                   from custnew

备注:1、table2检索出的数据插入到table1,必须先把table2表做填充。

      2、table2的检索出的值,不能存在table1中,否则提示插入不成功。


文章标题:oracle数据插入
当前链接:http://cdkjz.cn/article/gjeiso.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220