ok i need to export data from few tables every night with crontab and all that is ok and working...
now what i cant figure out myself is how can i ignore parts of the output to simple ascii file... heres what i have now:
select products_model,products_price + (products_price*0.22) into outfile "/my/site/and/my/files/whatever.txt" fields terminated by ';' lines terminated by "\n" from products;
that is ok exept i would like to drop out some parts of some lines ... example line:
Sample/Real text i wanna keep;1234.56
how can i drop that "Sample/" off from that line?
i have many lines that start with same text and i'd like to drop em all if possible... BUT (heres the tricky part...maybe) i'd like to keep that same text if it is in the middle of the line... so only drop it IF the line starts with it...
Thanks in advance again all! 🙂