pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zalman Stern <zalman@netcom.com>
To: zot@zotconsulting.com
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Tracking depth question
Date: Thu, 4 Nov 1999 22:48:05 -0800 (PST)
Message-ID: <199911050648.WAA06502@netcom.com> (raw)
In-Reply-To: <3821C4EF.CE5484E@zotconsulting.com>

> scatdepth integer DEFAULT (SELECT scatval from scattab where scatval =
> scatscat) + 1,

I think you mean "(SELECT scatdepth from scattab where scatval = scatscat)
+ 1" . (Perhaps you might consider calling scatscat "scatparent" instead.)

How about defining a function and setting the default to its return value?

-Z-



view thread (2+ messages)

Message-ID: <199911050648.WAA06502@netcom.com>
Permalink:  ../199911050648.WAA06502@netcom.com/
Also on:    postgresql.org/message-id/199911050648.WAA06502@netcom.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: zalman@netcom.com, zot@zotconsulting.com, pgsql-sql@hub.org
  Subject: Re: [SQL] Tracking depth question
  In-Reply-To: <199911050648.WAA06502@netcom.com>
  References: <3821C4EF.CE5484E@zotconsulting.com> <199911050648.WAA06502@netcom.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox