I need to create a MySQL statement that takes all the file paths of the files in a specific folder and inserts them into a MySQL table. For example, if my folder is called PastaTeste
, I need to have something in my table like this:
C:\PastaTeste\SubPasta1\Arquivo1.pdf
C:\PastaTeste\SubPasta1\Arquivo2.pdf
C:\PastaTeste\SubPasta2\Arquivo3.pdf
C:\PastaTeste\SubPasta3\Arquivo4.pdf
C:\PastaTeste\SubPasta3\Arquivo5.pdf
Is there any way to do this with MySQL? If it does not, can I export a list of files from my PastaTeste
to Excel, for example?