I'm trying to convert a comma separated string into a table result using MySql. Basically, I'm a SQL Server user and I don't know how to achieve the same in MySql. Please help me on this.
I've a sting like as below, basically a string array holds different values.
'45,55,65,41'
I wanted to get this converted into a table result as below
+---------+-----------------+
| id | value |
+---------+-----------------+
| 1 | 45 |
+---------+-----------------+
| 2 | 55 |
+---------+-----------------+
| 3 | 65 |
+---------+-----------------+
| 4 | 41 |
+---------+-----------------+
Ho to do this?