mysql/oracle中create table as的用法
来源:互联网 发布:linux查看jdk版本 编辑:程序博客网 时间:2024/06/17 12:31
1 mysql
create table t2 as select c1 from t1; --正确,一般用法--新表中对列重命名create table t2 as select c1 c2 from t1; --正确create table t2(c2 varchar(50)) as select c1 from t1; --语法正确,但不是预期结果desc t2; --c1, c2create table t2(c2) as select c1 from t1; --错误
2 oracle
create table t2 as select c1 from t1; --正确,一般用法--新表中对列重命名create table t2 as select c1 c2 from t1; --正确create table t2(c2) as select c1 from t1; --正确desc t2; --c2create table t1(col1 varchar(255)) as select c1 from t1; --错误,不能指定数据类型
3 insert into select和select into from
--oracle和mysql都不支持select into from,都支持insert into select
阅读全文
0 0
- mysql/oracle中create table as的用法
- Oracle create table as 的坑
- oracle create table as select
- Oracle Create Table as Select
- Oracle中,使 CREATE TABLE AS SELECT 支持ORDER BY
- 关于oracle with table as的用法
- oracle with table as的用法整理
- MySQL的create table as 与 like区别
- MySQL的create table as 与 like区别
- MySQL的create table as 与 like区别
- Mysql create table tb as select 和create table tb like的区别
- MySQL create table as与create table like对比
- oracle create table xx as select ....CREATE TABLE XXX AS SELECT .... 拷贝表的时候 not null 约束 和check
- db2中create table as的建表方式
- MySql create table ... as select * from ..
- MySQL create table as 与 like区别
- create table as 在Ogg中测试
- 阿里推荐大赛中 Mysql 中create table as 与like
- Programming Clojure.pdf 英文原版 免费下载
- 647. Palindromic Substrings
- centos7安装mariadb 笔记
- ⚔疯狂输出⚔ java 中的 多态 快速理解
- 103. Binary Tree Zigzag Level Order Traversal(BFS)
- mysql/oracle中create table as的用法
- centos无法安装pip解决办法
- python中Return浅析
- NVIDIA TK1 学习笔记(5):安装OpenCV
- 贪吃蛇 c++
- Java之instanceof
- JVM--详解虚拟机字节码执行引擎之栈帧结构
- python 判断debug
- 【Scikit-Learn 中文文档】处理文本数据