I am a proud Oracle developer and this is my blog.
My website is
here
This blog is OPINION, SUGGESTION and DEBATE.
Please correct anything I write that is misleading.
Pages
▼
Friday, May 28, 2010
A quick quiz for a Friday.
What is the largest number you can get from a three character string ?
infinite?
ReplyDeleteselect power(
to_number('999'),
to_number('999'))
from dual;
SQL> /
*
ERROR at line 1:
ORA-01426: numeric overflow
;)
Another quick one:
ReplyDelete1* select exp('999') from dual
SQL> /
select exp('999') from dual
*
ERROR at line 1:
ORA-01426: numeric overflow
;)
In MySQL too ;)
ReplyDeletemysql> select 9e9;
+------------+
| 9e9 |
+------------+
| 9000000000 |
+------------+
1 row in set (0.01 sec)
mysql>
Rachid
Breaks some dates, too
ReplyDeleteselect to_date(TO_NUMBER('9E9'),'j') from dual;
ORA-01854: julian date must be between 1 and 5373484