MySQL Forums
Forum List  »  German

Formate von Spalten in Tabellen ändern
Posted by: Davide Di Ronza
Date: June 21, 2012 12:17AM

Hallo Zusammen

Arbeite mit Workbench 5.2.35.

Ich habe eine MySQL-Datenbank mit ca. 300 Tabellen.
Nun möchte ich, dass in jeder Tabelle in jeder Spalte folgendes überprüft und geändert wird:
- Wenn Format der Spalte NOT NULL -> dann ändern in NULL (also NULL soll erlaubt sein)
- Wenn Format der Spalte char(x) -> dann ändern in varchar(y)
- Wenn Format der Spalte enum(x) -> dann ändern in varchar(y)

Wie lässt sich das am einfachsten Programmieren?

Ich habe leider nur geringe MySQL Kenntnisse.

Danke für die Hilfe.

Davide

Options: ReplyQuote


Subject
Views
Written By
Posted
Formate von Spalten in Tabellen ändern
2150
June 21, 2012 12:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.