Mailinglisten-Archive |
> -----Original Message-----
> From: Alexander Friess [mailto:Alexander.Friess_(at)_tsp-online.de]
> Sent: Monday, March 05, 2001 1:36 PM
> To: mysql-de_(at)_lists.4t2.com
> Subject: PHP-Api
>
>
> Hallo Liste,
>
> Frage zur Funktion "mysql_field_type()": Diese Funktion
> liefert bei mir
> (mysql 3.23.32, php 4.0.4pl1) bei einem "enum"-Feld als
> Feldtyp "string"
> zurück. Lt. PHP-Doku sollte aber der tatsächliche Typ zurückgeliefert
> werden.
>
> Hat irgendjemand eine Idee?
Allerdings. ENUM-Spalten sind immer als Strings definiert.
MySQL-Manual 7.3:
ENUM('value1','value2',...)
An enumeration. A string object [!!] that can have only one value,
chosen from the list of values 'value1', 'value2', ..., or NULL.
An ENUM can have a maximum of 65535 distinct values.
HTWH,
--
Matthias Lampert, Hamburg
---
*** Weitere Infos zur Mailingliste und MySQL unter http://www.4t2.com/mysql
php::bar PHP Wiki - Listenarchive