Re: simple web search

From: chester c young <chestercyoung(at)yahoo(dot)com>
To: Louis-David Mitterrand <vindex+lists-pgsql-sql(at)apartia(dot)org>
Cc: sql pgsql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: simple web search
Date: 2007-02-23 18:20:04
Message-ID: 658860.73789.qm@web54308.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


> > create view search_v as select
> > 'show'::name as tab_nm,
> > show_id as tab_pk,
> > 'Show Name' as description,
> > show_name as search
> > from show
> > union select
> > 'story'::name,
> > story_id,
> > 'Story Title',
> > title
> > from story
> > union ...
> >

> What is that ::name cast for?

it's not needed here - sorry.

name is the data type pg uses for table names &tc. it's frequently a
good idea to cast to name when when messing around in the data
dictionary.


____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stefan Becker 2007-02-23 18:25:35 how do I to generate a sequence Range or Set of integer constants
Previous Message Louis-David Mitterrand 2007-02-23 18:07:57 Re: simple web search