Autor Beitrag
Handycommander
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Sa 12.03.05 18:05 
Hallo,

ich möchte eine MySQL-Datenbank unter phpmyadmin.net machen.
leider weiß ich nicht, was die begriffe bedeuten :roll:

VARCHAR:
TINYINT:
TEXT:
DATE:
SMALLINT:
MEDIUMINT:
INT:
BIGINT:
FLOUT:
DOUBLE:
DECIMAL:
DATETIME:
TIMESTAMP:
TIME:
YEAR:
CHAR:
TINYBLOB:
TINYTEXT:
LONGBLOB:
LONGTEXT:
ENUM:
SET:

Welche Werte dürfen die einzelnen annehmen?

Danke

Tobias
kiwicht
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: Sa 12.03.05 18:29 
Diese Begriffe repräsentieren die Datentypen, die eine MySQL-Tabelle enthalten kann. Jetzt alle zu erklären wäre reine "Abschreibe-Arbeit", daher hier nur ein Link :)

www.schmager.de/mysql.php


ki
Handycommander Threadstarter
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Sa 12.03.05 19:22 
Hab hier folgendes:

Feld: board_disable
Funktion/Inhalt: ob Board deaktiviert ist oder nicht
Werte: 0 (nein); 1 (ja)

was muss ich da eingeben?
ich meine als typ?
und wo muss ich dann die werte bei phpmyadmin eingeben?

danke
kiwicht
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: Sa 12.03.05 20:03 
Leider gibts unter MySQL keine Boolean-Daten, als Ersatz fungiert hier "ENUM";


ENUM(TRUE,FALSE)


Fertig ;)
Handycommander Threadstarter
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Sa 12.03.05 20:07 
und wenns mehr sind? z.b 0-5?
Feld: auth_sticky
Funktion/Inhalt: wer Themen in dem jeweiligen Forum als "Wichtig" markieren darf
Werte: 0 (alle); 1 (registrierte Benutzer); 2 (explizit freigegebene User (Privat)); 3 (Moderatoren des betroffenen Forums); 5 (Administratoren)

und:
Feld: ban_userid
Funktion/Inhalt: id des jeweiligen gesperrten Users
Werte: = user_id in Tabelle "users"

danke
Phobeus
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1280

Linux (FC6), WinXP Pro (Box)
D6 Pers, D7 Pro, FPC 2.x
BeitragVerfasst: Sa 12.03.05 20:27 
Ja, ersetzen die Menschen hier den inzwischen eine Live-Dokumentation oder was? Die Dokumentation von MySQL ist eigentlich sehr gut und auch mit ein wenig google wirst Du auf all deine Fragen eine Antwort finden. Kleine Bereich tinyint, Große int.

_________________
"Menschen sterben nicht wenn man sie zu Grabe trägt, sondern wenn sie ihre Träume verlieren..."
kiwicht
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: So 13.03.05 14:04 
hehe, muss ich Phobeu mal zustimmen: RTF ;)

Wärst du dem Link gefolgt, den ich dir oben gezeigt habe, wärst du ohne umwege auf der dort dargestellten Tabelle auf die LÖsung deiner Frage gestossen! :)
ENUM kann nämlich mehr als 2 Parameter annehmen, z.B. "ENUME(TRUE, FALSE, VIELLEICHT, EHER NICHT)


;)
Niho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 19



BeitragVerfasst: Mo 18.04.05 21:41 
user profile iconkiwicht hat folgendes geschrieben:
Leider gibts unter MySQL keine Boolean-Daten, als Ersatz fungiert hier "ENUM";

MySQL 5.0.3 kennt den BIT Typ.
BIT(1) ist ein Boolean Typ.

Allerdings funktioniert BIT bislang leider nur mit InnoDB Tabellen.