If i have data in my MySQL like this
table:
data(TEXT)
foo (hal)
foo (dave)
bar (dave)
bar(dave)
And i want to do This Query
SELECT DISTINCT(data) FROM table;
Now this will return the table as listed above. But i want to do is some sort of replace so that my return query should look like this
SELECT DISTINCT(data) FROM table Replace(data, "(xxxx)", "");
So the Query returns
- foo
- bar
Obviously the data is not replaced because the Brackets are important, its just replaced for the query
If this can be done is there performance pitfals in this