|
linux as3.0 + oracle9.2.0.4
SQL> select count(*) from (select TO_NUMBER(SUBSTR(PARTITION_NAME,6)) from user_tab_partitions) ;
COUNT(*)
----------
920
SQL> select count(*) from user_tab_partitions
2 where TO_NUMBER(SUBSTR(PARTITION_NAME,6))<=182;
where TO_NUMBER(SUBSTR(PARTITION_NAME,6))<=182
*
ERROR at line 2:
ORA-01722: invalid number
SQL>
请问这是为什么? |
|