I have four strings with delimiter ‘|’
accounts = '1|5|12|18'
debit = '100|50|0|0'
credit = '0|0|20|130'
branches = '121|569|901|1002'
And have to insert into table columns as below
+----------+-------+--------+----------+
| accounts | debit | credit | branches |
+----------+-------+--------+----------+
| 1 | 100 | 0 | 121 |
| 5 | 50 | 0 | 569 |
| 12 | 0 | 20 | 901 |
| 18 | 0 | 130 | 1002 |
+----------+-------+--------+----------+
Please help Thanks