Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: fetchall_arrayref hangs with placeholders query with no resultsby afoken (Chancellor) |
on Apr 18, 2021 at 10:46 UTC ( [id://11131425]=note: print w/replies, xml ) | Need Help?? |
Maybe having no table confuses the system? It should not. Executing a table-less query like
works on most SQL databases. The remaining ones, Oracle being probably the most known example, always expects a dummy table or view, but also always provides that dummy table or view specifically for this purpose. Its name is DUAL on Oracle, and you need to use
on Oracle. Some databases also provide a table or view named DUAL just for Oracle compatibility. See Wikipedia: DUAL table for a nice overview. 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
|
|