note 46567 deleted from function.pg-last-oid by tomsommer
| From: | tomsommer@php.net | Date: | Fri, 15 Oct 2004 21:20:38 +0000 |
| Subject: | note 46567 deleted from function.pg-last-oid by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78612@lists.php.net to get a copy of this message | ||
Note Submitter: Infection
----
SELECT
a.attname as field,
d.adsrc as value
FROM
pg_attribute a,
pg_attrdef d,
pg_class e
WHERE
a.attrelid = e.oid AND
a.attnum > 0 AND
d.adnum = a.attnum AND
a.attnotnull IS TRUE AND
d.adrelid = a.attrelid AND
d.adnum = a.attnum AND
a.atthasdef AND
d.adsrc ~* 'nextval' AND
e.relname = '$__TABLE_NAME__'
I hove you know how use it further
----
Reason: useless note