Is it possible to Delimit data in a mysql database row?
I have data which exceeds about 2million entries, so exporting to csv, and doing it manually is not working as database is refusing to dump data.
the data is in format
url.com?some=0
url2.com?some=14
Is it possible to remove the ? and the data that follows after it?
Well, first things first. It doesn’t matter how big your database is, MySQL should dump to CSV without issue. I’ve successfully dumped tables containing twice the number of records you’re dealing with. Of course, part of that assumes that RAM and disk space are a non-issue which may not be the case.
In regard to your question about filtering data, yes it is possible. I’m going to assume your column is named “url” for my example below, so remember to change that if it is named something else.
In essence, you would run a query like this:
That will change all values of URL to only contain text before the first occurrence of a question mark.