Answer the question
In order to leave comments, you need to log in
How to compose a SQL LIKE query to select before the slash character?
I'm trying to make a request to select files for a given directory of the form files/directory/sub_directory
Accordingly, if I make a request for the files/ root folder, then everything is needed until the next slash, for example:
SELECT * FROM files WHERE path LIKE 'files/%';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question