If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > deleting txt files in a query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-27-04, 19:01
Strikerz95 Strikerz95 is offline
Registered User
 
Join Date: May 2004
Posts: 28
deleting txt files in a query

Is there a way to get mysql scripts to delete txt files on a server. I use a select into outfile query to create txt files with data from my database. I would also like to be able to delete those with a query as well. Any ideas?
Reply With Quote
  #2 (permalink)  
Old 07-28-04, 19:10
yellowmarker yellowmarker is offline
Registered User
 
Join Date: Jul 2004
Location: Dundee, Scotland
Posts: 107
you wouldn't use MySQL to delete a text file on a server (to my knowledge no such functionality exists within MySQL to do this). You'd use either an operating system command in the script (DOS or Linux) or a function in a language like PHP or PERL.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On