I have a problem, if I have data like this :
1. 2|7000|0001|Werk 0001 Standort 0001|0
2. 16|701A|0101109|KANTOR-R. DAPUR LT.1|0
3. 401|701H|03PLNT2|PABRIK-GEDUNG PLANT LT.2|0
4. 10272|B100|0109000|AUNG THEIK DI|161794|0
and I want to separate the first int like this :
1. 2
2. 16
3. 401
4. 10272
I already using a substring
, but the problem is, the number of digits in the first int is not fixed, so I can't using it, so I want to ask how to separate using that first symbol from |
, before I insert in database (separate in trigger)