dbTalk Databases Forums  

using ILIKE xyz where xyz is a function parameter

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss using ILIKE xyz where xyz is a function parameter in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Frank Footon
 
Posts: n/a

Default using ILIKE xyz where xyz is a function parameter - 07-10-2007 , 05:49 PM






Hi,

I'm stuck here.

I have a function that I would like to pass a text string and have the
function perform ILIKE on that passed string.

create or replace function foo( sLastName text )
AS

Select * from Person where LastName ILIKE sLastName;
....


What is the syntax for using ILIKE '%sLastName%' ??

Thanks for any tips,

Frank



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.