einfügen

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • einfügen

    Hallo,
    bin blutiger Änfänger und hatte bisher so gut wie nichts mit einer SQL-Datenbank gemacht.
    Jetzt habe ich folgendes Problem:

    ich soll

    Mithilfe eines MySQL-Tools folgende Zeile in die Datenbank einfügen:

    alter table products add column products_price1 decimal(15,4) not null default 0.0;
    alter table products add column products_price2 decimal(15,4) not null default 0.0;
    alter table products add column products_price3 decimal(15,4) not null default 0.0;
    alter table products add column products_price4 decimal(15,4) not null default 0.0;
    alter table products add column products_price5 decimal(15,4) not null default 0.0;
    alter table products add column products_price6 decimal(15,4) not null default 0.0;
    alter table products add column products_price1_qty int not null default 0;
    alter table products add column products_price2_qty int not null default 0;
    alter table products add column products_price3_qty int not null default 0;
    alter table products add column products_price4_qty int not null default 0;
    alter table products add column products_price5_qty int not null default 0;
    alter table products add column products_price6_qty int not null default 0;
    alter table products add column products_qty_blocks int not null default 1;

    Doch ich find in myadmin nur :

    [COLOR=red]Neue Tabelle in Datenbank DB188080 erstellen: [/COLOR]
    [COLOR=red]Name: [/COLOR]
    [COLOR=red]Felder: [/COLOR]

    Oder muß ich die ganze Zeile kopieren und als Befehl hier eingeben ?

    [COLOR=red]SQL-Befehl(e) in Datenbank DB188080 ausführen[/COLOR]


    [COLOR=red]SQL-Befehl hier wieder anzeigen [/COLOR]
    [COLOR=red]Abfrage vor Änderungen außerhalb des Fensters schützen[/COLOR]

    Wie muß ich das angehen ?
    Es wäre schön wenn ich eine Antwort bekommen würde.
    Danke im voraus
    Mit freundlichen Grüßen
    Tilo

  • #2
    "SQL-Befehl ausführen", alles in das Textfeld kopieren und abschicken.

    Kommentar


    • #3
      Hallo,
      Erst mal lieben lieben Dank!

      Ich habe es so gemacht

      Bekam folgende Rückmeldung:

      Ihr SQL-Befehl wurde erfolgreich ausgeführt.
      SQL-Befehl:
      ALTER TABLE products ADD COLUMN products_price1 decimal( 15, 4 ) NOT NULL default 0.0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price2 decimal( 15, 4 ) NOT NULL default 0.0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price3 decimal( 15, 4 ) NOT NULL default 0.0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price4 decimal( 15, 4 ) NOT NULL default 0.0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price5 decimal( 15, 4 ) NOT NULL default 0.0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price6 decimal( 15, 4 ) NOT NULL default 0.0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price1_qty int NOT NULL default 0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price2_qty int NOT NULL default 0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price3_qty int NOT NULL default 0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price4_qty int NOT NULL default 0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price5_qty int NOT NULL default 0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_price6_qty int NOT NULL default 0;# Betroffene Datensätze: 29
      ALTER TABLE products ADD COLUMN products_qty_blocks int NOT NULL default 1;# Betroffene Datensätze: 29


      Ist jetzt alles angelegt ?
      Mit freundlichen Grüßen
      Tilo

      Kommentar


      • #4
        Original geschrieben von l46tilo
        Ihr SQL-Befehl wurde erfolgreich ausgeführt.

        Kommentar


        • #5
          Hallo onemorenerd


          nochmal recht herzlichen Dank!
          Hat alles fuktioniert!! "freu"
          Mit freundlichen Grüßen
          Tilo

          Kommentar

          Lädt...
          X