I'm trying to find an optimized way to move first Character of a Column to end of it, if first Character was '@' , Just when Showing data in DBGrid (Not permanently in database).
There are many Functions in MySQL, but I want to find the best way!
I show many (about 2000) records in DBGrid. Does it affect performance ?!
SELECT (CASE WHEN ASCII(MyColumn)=64 THEN (CONCAT(SUBSTR(MyColumn,2),'@')) ELSE MyColumn END) FROM MyTable;But I think @fancyPants is right. It is better to handle it in application level !