Vinzenz Mai: Prüfung ob eine Spalte in MySQL Tabelle vorhanden ist

Beitrag lesen

Hallo Tom,

Selbstverständlich sollte INFORMATION_SCHEMA in XAMPP enthalten sein. Ich kann's nicht überprüfen, weil ich XAMPP nicht nutze.

Ich habe hier XAMPP-Version 5.0.51a auf Windows XP
Ich kann INFORMATION_SCHEMA nicht finden.

und was heißt das? Suchst Du etwa entsprechende Verzeichnisse und Dateien?
Wenn ja, vergiß es! Lies das Handbuch, ich zitiere schon wieder:

<zitat>
    INFORMATION_SCHEMA is the information database, the place that stores
    information about all the other databases that the MySQL server maintains.
    Inside INFORMATION_SCHEMA there are several read-only tables. They are
    actually views, not base tables, so there are no files associated with them.

In effect, we have a database named INFORMATION_SCHEMA, although the server
    does not create a database directory with that name. It is possible to
    select INFORMATION_SCHEMA as the default database with a USE statement, but
    it is possible only to read the contents of tables. You cannot insert into
    them, update them, or delete from them.
</zitat>

Frag' sie einfach ab. Bei meiner lokalen 5.0.45-Installation ist diese Datenbank vorhanden, im MySQL-Query-Browser wird sie auch wunderbar angezeigt.

Freundliche Grüße

Vinzenz