tongchenkeji 发表于:2023-3-28 19:49:530次点击 已关注取消关注 关注 私信 请问在MaxCompute中有oracle create as select 这种建表命令吗?[阿里云MaxCompute] 暂停朗读为您朗读 请问在MaxCompute中有oracle create as select 这种建表命令吗? 「点点赞赏,手留余香」 赞赏 还没有人赞赏,快来当第一个赞赏的人吧! 海报 MaxCompute# MaxCompute2748# Oracle174# 云原生大数据计算服务 MaxCompute3255# 关系型数据库2577# 分布式计算2827
DYMMMAM 2023-11-27 18:25:00 1 ” MaxCompute当前不支持这种语法,可以这样写。 create table newtable as select * from tablename; 不支持 CREATE TABLE newtable ( emp_id VARCHAR(10), emp_name TEXT ) AS SELECT CAST(emp_id AS VARCHAR(10)), emp_name FROM tablename; 如果需要改变newtable的数据类型可以用ddl语句 参考文档:https://help.aliyun.com/document_detail/73771.html#section-qij-e5j-ge9整理自钉群“MaxCompute开发者社区2群””
凌云CloudAM 2023-11-27 18:25:00 2 MaxCompute SQL采用的是类似于SQL的语法,它的语法是标准语法ANSI SQL92的一个子集,并有自己的扩展,所以要去对照下差异。 https://help.aliyun.com/document_detail/54051.htm?spm=a2c4g.11186623.0.0.64cf7e6dIaznlw#concept-fsf-mvf-vdb
” MaxCompute当前不支持这种语法,可以这样写。 create table newtable as select * from tablename; 不支持 CREATE TABLE newtable ( emp_id VARCHAR(10), emp_name TEXT ) AS SELECT CAST(emp_id AS VARCHAR(10)), emp_name FROM tablename;
如果需要改变newtable的数据类型可以用ddl语句 参考文档:https://help.aliyun.com/document_detail/73771.html#section-qij-e5j-ge9整理自钉群“MaxCompute开发者社区2群””
MaxCompute SQL采用的是类似于SQL的语法,它的语法是标准语法ANSI SQL92的一个子集,并有自己的扩展,所以要去对照下差异。
https://help.aliyun.com/document_detail/54051.htm?spm=a2c4g.11186623.0.0.64cf7e6dIaznlw#concept-fsf-mvf-vdb