Hey guys,

You probably have the answer to this for me. Im trying to dump selected data 
from one or more tables into a file for export via email. I try this sentence:

execute("SELECT * INTO OUTFILE = ? FIELDS TERMINATED BY ' ,'LINES TERMINATED BY 
'\n' FROM sre_db.gsa_table and sre_db.gga_table WHERE job_number = ? and 
point_number = ? ").bind(s).bind(jobnumber).bind(point number);


where I try to create the file name(s): 

std::stringstream ss;
    ss << "/Users/taf/downloads/Jobnumber_" << jobnumber << "_pointnumber_" << 
pointnumber << ".csv" << std::endl;
    ss >> s;

based on the input of the method:

void dbHandler::sqlQuery(int jobnumber, int pointnumber)


The method doesn’t fail, but it doesn’t seem to create a file. Anyone have a 
hint on what Im doing wrong here?


Regards,
Tor

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to