List of differences between SQL databases
Asked Answered
T

2

31

Most SQL databases follow the ANSI SQL standards to a degree, but

  1. The standard is ambiguous, leaving some areas open to interpretation (eg: how different operations with NULLs should be handled is ambiguous)

  2. Some vendors contradict the standard outright or just lack functionality defined by the standard (eg: MySQL has a list of differences between the standard and their implementation)

  3. Some databases will behave differently depending on how they are configured, but configuration can be changed to have them behave the same way (eg: Oracle performs case-sensitive string comparisons by default, while SQL Server does them case-insensitve)

  4. There is some functionality that is not part of the standard but is implemented by different RDBMSs anyway, albeit with different names (eg: Oracle's LISTAGG = MySQL's GROUP_CONCAT)

Is there a resource with a comprehensive list of quirks and gotchas to pay attention to when you are trying to write something that is supposed to be compatible with multiple databases?

Ticking answered 21/9, 2011 at 6:39 Comment(4)
+1 valuable question. One thing to be mindful of is that not only will you encounter problems with compatibility, you will also should consider testing your solutions on the major supported RDBMSs to make sure that there's no obscure performance hit and that there's nothing yet undocumented. At the end of the day you should cover yourself and say which platforms you specifically support while stating that other platforms might be supported later.Spellman
Indeed a valuable question which, unfortunately, remains unanswered.Aluminothermy
I like the OReilly SQL quick reference because it shows me a variety of syntax and differences between several dialects. Unfortunately this is a moving target with new functionality and changes whenever new versions come out. There is also sqlfiddle.com which will let you try out several different versions of servers (oracle, mysql,...) and even versions of a given server (mysql 5.5 and 5.6).Creel
This is a bit old but maybe of some use troels.arvin.dk/db/rdbmsRhodesia
R
5

I'm not sure how comprehensive this list is, but maybe this will help - http://troels.arvin.dk/db/rdbms/

Rodroda answered 6/12, 2016 at 16:53 Comment(0)
S
1

Except of already mentioned some comparison you can find in Wikipedia

Also similar question was already posted on Stackoverflow where you can fin a couple of useful links.

Sailer answered 7/12, 2016 at 15:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.