Can't create/write to file (Errcode: 22)

Posted by magdmartin on Stack Overflow See other posts from Stack Overflow or by magdmartin
Published on 2012-11-13T21:31:16Z Indexed on 2014/05/30 3:26 UTC
Read the original article Hit count: 92

Filed under:
|
|

Quite new with SQL I'm looking to export some data from a MySQL database into a csv file. I'm working locally (localhost).

Here is my SQL statement:

SELECT DISTINCT *
INTO
OUTFILE 'C:\Users\Martin\Downloads\result.csv'
FROM provider, location, provider_has_location
WHERE 
provider.idprovider = provider_has_location.provider_idprovider AND
location.idLocation = provider_has_location.location_idLocation
LIMIT 20

MySQL return the following error:

Can't create/write to file 'C:UsersMartinDownloads esult.csv' (Errcode: 22)

Thanks for your help.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql