The Open Source Swiss Army Knife

/sql_servers/postgresql/pg_plpgsql/
/sql_servers/postgresql/pg_plpgsql/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /sql_servers   /postgresql   /pg_plpgsql 
Permalink: a_f.sql
Title: sql function %|| syntax
article options : please login   |  raw source view  

CREATE or replace FUNCTION mod_log.top_hits(text)
returns setof getpass_type AS
'

SELECT uri, client_ip FROM mod_log.apachelog WHERE uri like ''%'' || $1 || ''%''
' LANGUAGE 'sql';

-- create type getpass_type as
-- (
-- username character varying(30),
-- password character varying(30)
-- );


Leave a Reply
Your Name:     anonymous
Your Email:
Website:  
Comments:

The author will be notified of your reply.
return to top