I have a table in which the data's are entered like,
Example:
One (1) Two (2) Three (3)
I want to extract the data which is only within the parentheses.
that is 1 2 3
Thank You Nicholas I
Use a regular expression:
SELECT substring('this is a test(22)' from '\([0-9]+\)');
This would return 22.
Regards
Thom
Есть вопросы? Напишите нам!
✖
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.