odps script使用

目录

一、使用环境

二、注意点


一、使用环境

        阿里DataStudio

二、注意点

1、使用@给参数赋值:

@month := '20230102';

select * from table_a where m=@month;

2、不可以直接使用临时表,想要使用临时表需要以参数赋值的形式

@tmp_table := select id from table_a;

select * from @tmp_table;

3、只能有一个insert语句

你可能感兴趣的:(odps,大数据,数据仓库)