MySQL String separation by comma operator
I have String asdasdwdfef,rgrgtggt,weef and i want output like in table format as shown below id decription 1 asdasdwdfef 2 rgrgtggt 3 weef For this i created a procedure here is my procedure DELIMITER ;; CREATE Procedure Split(_RowData text, _Delimeter text) BEGIN DECLARE _Iterator INT default 1; DECLARE _FoundIndex INT; DECLARE _Data varchar(255); SET _FoundIndex = LOCATE(_Delimeter,_RowData); DROP TABLE IF EXISTS _RtnValue; CREATE temporary TABLE _RtnValue(ID INT AUTO_INCREMENT NOT NULL, description text, primary key(ID)); WHILE _FoundIndex > 1 DO INSERT INTO _RtnValue (description) SELECT