I have an application written in Yii where I’ve been developing towards a MySQL database. The queries can look something like this:
The queries are written using standard SQL so that the application can be run on any database, or at least so I thought.
Now I want to use it on MSSQL but am running into a problem where the queries are not being executed properly and generating errors. MSSQL is requiring me to have a syntax like this:
Is there any way for me to get around this without having to rewrite the SQL queries? Perhaps there is a setting in MSSQL or is there something in Yii which I can define?