Re: position(text,text) function

Поиск
Список
Период
Сортировка
От omid omoomi
Тема Re: position(text,text) function
Дата
Msg-id F216Gmjm08IyFrydlb900003972@hotmail.com
обсуждение исходный текст
Ответ на position(text,text) function  (karl@tecc.co.uk (Karl Orbell))
Список pgsql-sql
position ( 'el' in 'hello') ;

>From: karl@tecc.co.uk (Karl Orbell)
>To: pgsql-sql@postgresql.org
>Subject: [SQL] position(text,text) function
>Date: Mon, 23 Jul 2001 14:27:15 +0000 (UTC)
>
>I'm having trouble using the position function, it's a simple built-in 
>function.
>
>It returns the index of a substring within a main string.
>
>But, I just can't get it to work, it always gives this silly parser error.
>I've tried it in a variety of ways with variables instead of constants 
>casting
>to text and using it in other contexts, (ie. in functions, not just in a
>select).  What am I doing wrong?  Is this not the correct syntax for a two
>argument function?
>
>test=# select position('hello','el');
>ERROR:  parser: parse error at or near ","
>
>
>Karl Orbell.
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: RE: position(text,text) function
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: unique index on more than one field using functions