good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: dbi odbc return string getting truncatedby afoken (Chancellor) |
on Aug 07, 2019 at 18:42 UTC ( [id://11104111]=note: print w/replies, xml ) | Need Help?? |
I was astonished at first, too, but "AS" probably is optional. Don't know about OP's database, but for SQLite, it is for the result column (not in CAST, though). Yes, that's standard SQL. The AS in column-or-expression AS alias is optional. My next question would be: what table or column definitions are used when there is no "FROM"? None.
is perfectly legal SQL. It returns a single row with - in this case - a single column with a type matching the type of the expression left of AS. Only Oracle insists on a table or view, and it has a dummy table called DUAL for exactly that purpose. So, Oracle wants
See also DUAL_table, Selecting from the DUAL table. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|