MS SQL 服务器 - 如何过滤最小字符长度

MS SQL server - how to filter on minimum character length

SQL 菜鸟,我正在寻找一种方法来过滤必须具有最少字符数的列中的字符长度,

例如;从列返回的所有名称必须至少包含 5 个字母(使用 SqL 服务器)

我尝试使用 [_____] LIKE,但我无法让它工作,因为我相信这只是 returns 5 个字母(不是最少 5 个?)...任何帮助赞赏!


试过 LEN(列)>= 5 并且有效:)

select *
from MyTable
where len(MyVarCharColumn) >=5