| От | bilal ghayyad |
|---|---|
| Тема | Substring |
| Дата | |
| Msg-id | 15318.85292.qm@web53905.mail.re2.yahoo.com обсуждение |
| Ответы |
Re: Substring
|
| Список | pgsql-sql |
Hello;
I have an sql script function that take one text parameter "funct (text)", what I need to do is the following:
If the parameter name is string and its value was for example "abcd" then I need to do a query based on ab and then
basedon the abc, how?
Example:
SELECT * from voipdb where prefix like string
But I need the string to be ab and then to be abc? How I can assign the string to the first character and then to the
firstand second? In other words, how can I can take part of the string to do query on it?
Regards
Bilal
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера