Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The DB::raw query is not functional when using Oracle in Laravel because Oracle uses a different syntax for raw queries compared to other SQL databases. Oracle requires a special syntax for raw queries that includes a "FROM DUAL" statement, which is not recognized by the default DB::raw syntax in Laravel. To use raw queries with Oracle in Laravel, you must modify the DB::raw syntax to include the "FROM DUAL" statement, or use a different syntax entirely.