我想这样 select enp.LAST_NAME from EMPLOYEES enp partition("P20120101"); 当我尝试时,Oracle说;
select enp.LAST_NAME from EMPLOYEES enp partition("P20120101");
> ORA-00924: missing BY keyword
有没有一种方法可以同时使用别名和分区?
0yg35tkg1#
正确的语法是 FROM <TABLE_NAME> PARTITION(<PARTITION_NAME>) <ALIAS_NAME> 所以,试试看 select enp.LAST_NAME from EMPLOYEES partition("P20120101") enp;
FROM <TABLE_NAME> PARTITION(<PARTITION_NAME>) <ALIAS_NAME>
select enp.LAST_NAME from EMPLOYEES partition("P20120101") enp;
1条答案
按热度按时间0yg35tkg1#
正确的语法是
FROM <TABLE_NAME> PARTITION(<PARTITION_NAME>) <ALIAS_NAME>
所以,试试看select enp.LAST_NAME from EMPLOYEES partition("P20120101") enp;