Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| modul:m290:learningunits:lu05:theorie:02 [2024/09/25 16:14] – vdemir | modul:m290:learningunits:lu05:theorie:02 [2024/10/17 12:43] (aktuell) – vdemir | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== | + | ====== |
| **Source**: | **Source**: | ||
| - | * [[https:// | + | * [[https:// |
| - | * [[https:// | + | * [[https:// |
| - | * [[https:// | + | * [[https:// |
| ===== Learning Objectives ===== | ===== Learning Objectives ===== | ||
| In this learning unit, we will learn how to manage database tables, i.e. | In this learning unit, we will learn how to manage database tables, i.e. | ||
| - | -how to create | + | - how to create |
| - | -how to modify and | + | - how to modify and |
| - | -how to delete database tables | + | - how to delete database tables |
| ===== CREATE TABLE ===== | ===== CREATE TABLE ===== | ||
| Let's start by creating a table based on the ERD of the student management tool, as shown below: | Let's start by creating a table based on the ERD of the student management tool, as shown below: | ||
| - | Our goal is to create the table " | + | Our goal is to create the table " |
| CREATE TABLE table_name ( | CREATE TABLE table_name ( | ||
| Zeile 85: | Zeile 85: | ||
| ALTER COLUMN column_name datatype; | ALTER COLUMN column_name datatype; | ||
| | | ||
| - | And of course, as a concrete practical example, in which we change the length of the column name from 50 characters to 100: | + | And of course, as a concrete practical example, in which we change the length of the column |
| ALTER TABLE student | ALTER TABLE student | ||
| Zeile 91: | Zeile 91: | ||
| | | ||
| ===== DROP TABLE ===== | ===== DROP TABLE ===== | ||
| - | If we created a table wrongly | + | If, for whatever reason, |
| DROP TABLE table_name; | DROP TABLE table_name; | ||
| - | **Hint:** | + | **Hint: |
| - | * Be careful with this command, as it also deletes the entire contents of this table. | + | |
| ==== Vocabulary ==== | ==== Vocabulary ==== | ||
| ^English ^ Deutsch ^ | ^English ^ Deutsch ^ | ||
| - | | ::: | ... | | + | | column |
| ---- | ---- | ||
| [[https:// | [[https:// | ||