Answer the question
In order to leave comments, you need to log in
How to extract from row by index in sql?
SELECT substring('Guru99' from 1 for 4)
4 characters are extracted from the first position,
but I need characters 1 and 3 to be extracted.
Answer the question
In order to leave comments, you need to log in
substring is not intended for such manipulations. First extract the first character, then the third. You can combine the result together and write it to a variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question