Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: select constant.field
Mark C. Stock wrote:
> "Arto Viitanen" <arto.viitanen_at_csc.fi> wrote in message
> news:43d60342$0$10073$ba624cd0_at_newsread.funet.fi...
>> Why can I make following query >> >> select 1.foobar from dual >> >> Result is 1.0 (Oracle 10g1 EE, 32 bit Linux) >> >> So why can I use number as a table name (or actually table alias) and >> why that "table" can have what ever field? >> >> When I tried >> >> select 1."foo bar" from dual >> >> I get 1 as result. >> >> -- >> Arto Viitanen, CSC Ltd >> Espoo, Finland
Yes, but funny thing was, why 1.foo gives floating point number, but 1."foo" gives integer. I tested this on MySQL and it gives 1 on both cases.
-- Arto Viitanen, CSC Ltd Espoo, FinlandReceived on Wed Jan 25 2006 - 00:54:07 CST
![]() |
![]() |