note 73182 added to function.pg-field-prtlen
| From: | gregm at gxsnmp dot org | Date: | Mon, 12 Feb 2007 16:11:04 +0000 |
| Subject: | note 73182 added to function.pg-field-prtlen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123282@lists.php.net to get a copy of this message | ||
If you update the query to this:
$s = "SELECT a.attname AS name, t.typname AS type, a.attlen AS size, a.atttypmod AS len,
a.attstorage AS i
FROM pg_attribute a , pg_class c, pg_type t
WHERE c.relname = '$TABLE'
AND a.attrelid = c.oid AND a.atttypid = t.oid and a.attnum > 0 and not a.attisdropped";
You get postgres to filter out the 'postgres' columns and get only your columns back.
----
Server IP: 64.71.164.2
Probable Submitter: 209.195.24.36
----
Manual Page -- http://www.php.net/manual/en/function.pg-field-prtlen.php
Edit -- https://master.php.net/note/edit/73182
Del: integrated -- https://master.php.net/note/delete/73182/integrated
Del: useless -- https://master.php.net/note/delete/73182/useless
Del: bad code -- https://master.php.net/note/delete/73182/bad+code
Del: spam -- https://master.php.net/note/delete/73182/spam
Del: non-english -- https://master.php.net/note/delete/73182/non-english
Del: in docs -- https://master.php.net/note/delete/73182/in+docs
Del: other reasons-- https://master.php.net/note/delete/73182
Reject -- https://master.php.net/note/reject/73182
Search -- https://master.php.net/manage/user-notes.php