How do I extract first characters of a string with delimeters. For example I tried this statement:
Select "order-no" as "COL1", substr("order-no", 1, instr("order-no", '-',1, 2) ) as "COL2" from PUB."table"
where "order-no" like '4250%'
and got the following result:
COL1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.