mysql_field_flags

(PHP 3, PHP 4 )

mysql_field_flags -- 結果において指定したフィールドのフラグを得る

説明

string mysql_field_flags ( resource result, int field_offset)

mysql_field_flags() は、指定したフィールドの フィールドフラグを得ます。フラグは、空白一つで区切られたフラグ毎 に一つの単語として取得されます。このため、 explode() を用いて返り値を分割することができま す。

運用システム上のMySQLがサポートしている場合、次のフラグがレポート されます。"not_null", "primary_key", "unique_key", "multiple_key", "blob", "unsigned", "zerofill", "binary", "enum", "auto_increment", "timestamp"

下位互換性の維持のため、 mysql_fieldflags() も使用可能です。