dendenners
Programmer
Hi there.
I would like to check some file names that I receive against values in a database. I have a database table that holds valid file names, and I need to check specific file names against values in this table. However my problem is that some of the files I receive have a timestamp as part of their name. For example, I may receive a file with the name 'foo20020605120000.dat', where the numbers are a timestamp. What I would like to have is a value in the database like 'foo*.dat' which would positively match the above file. I know this is possible the other way around using the 'LIKE' keyword, but I have never seen an example the way I want it. Thanks for your help.
P.S. if I was able to have a value in the table of
'fooYYYYMMDDhhmmss.dat' that would match the above file, it would be even better.
I would like to check some file names that I receive against values in a database. I have a database table that holds valid file names, and I need to check specific file names against values in this table. However my problem is that some of the files I receive have a timestamp as part of their name. For example, I may receive a file with the name 'foo20020605120000.dat', where the numbers are a timestamp. What I would like to have is a value in the database like 'foo*.dat' which would positively match the above file. I know this is possible the other way around using the 'LIKE' keyword, but I have never seen an example the way I want it. Thanks for your help.
P.S. if I was able to have a value in the table of
'fooYYYYMMDDhhmmss.dat' that would match the above file, it would be even better.