You can comply with ANSI SQL 92. All of the major RDBMSs that I know will support this.
However, there are many things that individual RDBMS vendors have added to improve their own taste for SQL. That's where you run into.
You may need to branch out in the code depending on the DBMS you are connecting to and generate / select the appropriate SQL statement at this point.
A better option would be to create a DAL for each supported RDBMS. Deploy the DAL interface through the DAL to make them homogeneous. This should be easier than switching to code.
I suggest that instead of catering to everyone, you should write your code in such a way that you support the top one or two systems that you plan to deploy, and add support for other DBMSs as needed.
source share