Substring

Поиск
Список
Период
Сортировка
От bilal ghayyad
Тема Substring
Дата
Msg-id 15318.85292.qm@web53905.mail.re2.yahoo.com
обсуждение исходный текст
Ответы Re: Substring  (Raj Mathur <raju@linux-delhi.org>)
Список 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 по дате отправления:

Предыдущее
От: Simon Bateman
Дата:
Сообщение: Adding ENUM Type
Следующее
От: Raj Mathur
Дата:
Сообщение: Re: Substring