select into
来源:互联网 发布:数据库两个主键约束 编辑:程序博客网 时间:2024/05/21 17:32
select * into destTbl from srcTbl
insert into destTbl(fld1, fld2) select fld1, 5 from srcTbl
insert into destTbl(fld1, fld2) select fld1, 5 from srcTbl
以上两句都是将 srcTbl 的数据插入到 destTbl,但两句又有区别的:
第一句(select into from)要求目标表(destTbl)不存在,因为在插入时会自动创建。
第二句(insert into select from)要求目标表(destTbl)存在,由于目标表已经存在,所以我们除了插入源表(srcTbl)的字段外,还可以插入常量
- select into
- select into
- select into
- SELECT...INTO
- select into 和 insert into
- insert into 与 select into
- select into 与 insert into
- ORALCE: Select into VS Insert into select
- SELECT...INTO 以及insert into...select总结
- MySQL select into 和 SQL select into
- insert into select和 select into用法
- select into 和 insert into select区别
- MySQL select into 和 SQL select into
- Insert into select and select into
- select into 与 insert into select
- select into 和insert into select
- Insert into select 和 select into from
- SELECT INTO 和 INSERT INTO SELECT
- Rowid说明
- 统计在线人数和历史人数,写入数据库!
- CListCtrl
- JS中公共/私有变量和方法
- C# file和fileinfo 的区别
- select into
- Shell脚本调试技术
- OLE操作Excel
- Head First C# 中文版 第12章 回顾与前瞻 page547
- 基于Delphi的Excel动态报表技术
- JSON vs XML
- [知识竞赛现场管理系统-PPT双屏版]隆重推出,PowerPoint技术深度应用,国内唯一。只要会制作普通的PPT,就可打造一场专业的知识竞赛。
- 我毕业后的大学(一)
- Singleton与Prototype