What is a way that I could add a column to my table that would include the docID, plus a bunch of static information around it?
For example
docID | topic | docURL
________________________________________________________
1 | Floods | http://site.com/downloaddoc.php?docID=1
2 | Etc.. | http://site.com/downloaddoc.php?docID=2
I know it seems convoluted to do it this way, but we have to have this particular table downloadable into a CSV to import the data into other programs that use Excel as an input.
You could try this:
After every INSERT you could make an
I'm not sure I have understood but I think you could use concat function in order to concatenate strings and then use a
select into outfile
to export into csv without changing your table structure.