If you’ve been working with SQL Server for any length of time, you might have encountered the Datalength()
function. This function returns the number of bytes used to represent an expression.
But if you’ve moved to MySQL, you may be looking for a function that does the same thing.
In MySQL, the Length()
function does basically the same thing that the T-SQL Datalength()
function does in SQL Server (and Azure). MySQL’s Length()
function returns the length of a string, measured in bytes.
Continue reading