|
|
|
|
|
by galaxyLogic
1458 days ago
|
|
Exactly. Isn't it a sad state of affairs that you can not write plain pure standards-compliant SQL and be done with it? It's a bit like if you wrote C and could only compile your program with Oracle's C-compiler. Where is progress in SQL standardization going? |
|
In theory we can use a tool which tells if you SQL is ANSI compliant, but this would not tell if your code expect only standard compliant behavior from the database. E. g. some RDBMs are flexible in which formats they accept datetime strings and some are not. SQL can be standards-compliant but code still can fail with one DB and work with another.
It is not to say that standards are useless. It much easier to port an application from one DB to another if a developer was trying to use only ANSI SQL. Or you can write an application which can work with multiple RDBMs without modification but like with almost everything else - if you haven't tested it you cannot be sure that it works.