note 46714 added to function.mysql-field-flags
| From: | buttrose at unimelb dot edu dot au | Date: | Thu, 21 Oct 2004 02:26:52 +0000 |
| Subject: | note 46714 added to function.mysql-field-flags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78865@lists.php.net to get a copy of this message | ||
This function is essential for writing a generic table editor (ie one that just takes the name of
the table and works out what fields it has, types, sizes etc.). Unfortunately, I am using psotgreSQL
not mySql. Postgres has field_type and field_size functions but not as far as I can tell an
equivalent of the mysql_field_flags() function. Without it, there is no way I can do generic ADDs
and INSERTs.
Anyone know a workaround to get this information (eg is the field a primary key? Can it be NULL? Is
it auto_increment?) in Postgres?
Cheers
Rob Buttrose
----
Manual Page -- http://www.php.net/manual/en/function.mysql-field-flags.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46714
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46714&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46714&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46714&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46714&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46714&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46714&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46714&report=yes
Search -- http://master.php.net/manage/user-notes.php