Substring - Mailing list pgsql-sql

From bilal ghayyad
Subject Substring
Date
Msg-id 15318.85292.qm@web53905.mail.re2.yahoo.com
Whole thread Raw
Responses Re: Substring  (Raj Mathur <raju@linux-delhi.org>)
List 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 by date:

Previous
From: Simon Bateman
Date:
Subject: Adding ENUM Type
Next
From: Raj Mathur
Date:
Subject: Re: Substring