Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have an array of type character.
For ex: {AA,BB,CC,DD,EE,FF,GG, hh, II, jj,KK}
{AA,BB,CC,DD,EE,FF,GG, hh, II, jj,KK}
From the above array i need to extract for ex: from 3rd position to 7th position which is {CC,DD,EE,FF,GG}
{CC,DD,EE,FF,GG}
Please let me know how to achieve this.
If you know the positions, you can simple do this:
SELECT myarray[3:7] FROM mytable ...;
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.