update
This commit is contained in:
1
daten-manipulieren/delete.sql
Normal file
1
daten-manipulieren/delete.sql
Normal file
@ -0,0 +1 @@
|
||||
delete from categories where id = 30;
|
9
daten-manipulieren/insert.sql
Normal file
9
daten-manipulieren/insert.sql
Normal file
@ -0,0 +1,9 @@
|
||||
insert into categories (title)
|
||||
values ('Fremdsprachige Bücher'),
|
||||
('eBooks'),
|
||||
('Märchen');
|
||||
|
||||
delete
|
||||
from categories
|
||||
where title in ('Märchen', 'eBooks', 'Fremdsprachige Bücher');
|
||||
|
6
daten-manipulieren/table-manipulation.sql
Normal file
6
daten-manipulieren/table-manipulation.sql
Normal file
@ -0,0 +1,6 @@
|
||||
create table if not exists stores
|
||||
(
|
||||
street varchar(100),
|
||||
description text
|
||||
)
|
||||
|
7
daten-manipulieren/update.sql
Normal file
7
daten-manipulieren/update.sql
Normal file
@ -0,0 +1,7 @@
|
||||
update categories set title = '
|
||||
Fremdsprachige Bücher' where title = 'Fremdsprachige Bücher';
|
||||
|
||||
update categories set title = 'Kinder- & Jugendbücher' where title = 'Kinder- und Jugendbücher';
|
||||
update categories set title = 'Ernährung & Diät' where id = 8;
|
||||
|
||||
update categories set title = replace(title, 'und', '&');
|
Reference in New Issue
Block a user