delete file using MySQL procedure

前端 未结 1 1544
青春惊慌失措
青春惊慌失措 2021-01-14 22:52

Is there any way to delete file using SQL command ?
I have image files in filesystem, and links to them in DB. For example:

CREATE TABLE products (
    i         


        
相关标签:
1条回答
  • 2021-01-14 23:26

    You can't do this from within MySQL. The only things it can do to affect files are create new ones as part of a SELECT ... INTO OUTFILE ... query. There's no facilities for manipulating external files, let alone deleting them.

    0 讨论(0)
提交回复
热议问题