There are many functions that are included in both MySQL and SQL Server. However, just because both DBMSs share functions of the same name, doesn’t mean that those functions work exactly the same way.
Take CHAR()
for example. Both MySQL and SQL Server include this function. Well technically, for SQL Server it’s actually a T-SQL function, but that’s beside the point. The point is that the MySQL CHAR()
function provides more functionality than the T-SQL/SQL Server CHAR()
function.
In particular, the MySQL version accepts multiple integers, whereas, the T-SQL version only accepts a single integer. The MySQL version also accepts a USING
clause that allows you to specify which character set to use (the T-SQL version doesn’t have this clause).
Below are some examples of these differences.
Continue reading →