📜  参数数据类型文本对于 len 函数的参数 1 无效. - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:20.999000             🧑  作者: Mango

代码示例1
If you try to use len() on a Text field, you will get an error Argument data type text is invalid for argument 1 of len function.

The answer to this is the Datalength() function which will return the length of any expression. This can be used on all data types including text, ntext, image and varbinary.