选择“无效”文件扩展名

时间:2018-11-05 11:15:50

标签: sql file advantage-database-server

使用Advantage Arc尝试从没有有效文件扩展名的表中获取文件列表。我想查找不包含“。”的任何内容。我可以使用的名称:

select *
from filelist
where filename not like '%.%';

我现在想扩展此范围,以便可以选择任何带有“。”但末尾没有3或4个字符的内容,因此希望可以选择其他无效的扩展名。

1 个答案:

答案 0 :(得分:1)

您可以这样做:

select *
from filelist
where filename not like '%.____' and
      filename not like '%.___'
相关问题