How can I write a SQL query to do below function. I have a column values with underscore "_". I want to split these values by underscore "_" to create two new columns named pID, nID and keep original ID column intact.
Input example Output example
ID | | pID | nID |
1234_591856 | ==> | 1234 | 591856 |
12547_15795 | | 12547| 15795 |
12_185666 | | 12 | 18566 |
jQuery?