MySQL-HM-Grundlagen Flashcards

1
Q

Datenbanken anzeigen

A

show databases;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Datenbank erstellen

A

create database datenbankname;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Datenbank öffnen

A

use datenbankname;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Datenbank löschen

A

drop datenbankname;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Tabellen anzeigen

A

show tables [from datenbankname];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Tabellenstruktur anzeigen

A

desc[ribe] tabellenname;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Tabelle anlegen

A

create table tabellenname

(Feldname_1 datentyp, Feldname_2 datentyp);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Tabelle löschen

A

drop table tabellenname;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Werte eingeben

A

insert into tabellenname

(feldname, feldname)

values

(wert, wert);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

alle Werte anzeigen

A

select * from tabellenname;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Werte löschen

A

delete tabellenname1, tabellenname2

from tabellenname1, tabellenname2

where tabellenname1.primary_key = tabellenname2.foreign_key

[and feldname3.primary_key = feldname4.foreign_key];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly