- Stahuj zápisky z přednášek a ostatní studijní materiály
- Zapisuj si jen kvalitní vyučující (obsáhlá databáze referencí)
- Nastav si své předměty a buď stále v obraze
- Zapoj se svojí aktivitou do soutěže o ceny
- Založ si svůj profil, aby tě tví spolužáci mohli najít
- Najdi své přátele podle místa kde bydlíš nebo školy kterou studuješ
- Diskutuj ve skupinách o tématech, které tě zajímají
Studijní materiály
Hromadně přidat materiály
Prezentace Structured Query Language_Nazarov Andrej
Y04A2L - Anglický jazyk 2-2
Hodnocení materiálu:
Zjednodušená ukázka:
Stáhnout celý tento materiály occur when the information stored in your database becomes out of date and you need to update it. UPDATE statement takes care of that (who could’ve thought (). Syntax looks like this:
UPDATE tablename SET columnname = newvalue WHERE condition.
The WHERE clause is again optional. So suppose you want to give your employees who worked more than 5 hours overtime a raise. This is how you’d do it using SQL:
UPDATE employees SET salary = salary * 1,25 WHERE overtime > 5
You can also modify the structure of an existing table – no need to copy and recreate another table. ALTER TABLE statement can do the work for you. With it you can add, delete (drop) and rename columns, set constraints, create primary keys and modify the data type of a column. Here is an almost self explanatory example:
ALTER TABLE sales
ADD seller_id integer
ADD contract_id NOT NULL PRIMARY KEY
DROP seller_name
MODIFY contact_phone varchar(13)
RENAME sum to total
Removing data
Time will come when you’ll need to get rid of certain entries when they’re not needed anymore. Two SQL statements are used for this occasion - DROP and DELETE. You can DROP a lot of things…from entire databases to users to tables. Syntax is easy to remember: DROP OBJECT_TYPE objectname. So for example to drop a table called meetings all you need to do is write DROP TABLE meetings. To remove a row (or several rows) matching a criteria you need to use the DELETE statement. Again it isn’t complicated. Looks like this basically: DELETE FROM tablename WHERE condition. So in order to remove all users who haven’t bought anything you can write:
DELETE FROM customers WHERE money_spent=0
As you can see the language is quite powerful and its data and database manipulation abilities are extensive. I haven’t even scratched the surface of this language and only mentioned the most important part – data manipulation. Most implementations of SQL are capable managing users on the server, creating complex constraints, logging all changes (to so-called transaction logs) and so on and so forth. And with this thought I’m going to end this presentation.
Vloženo: 28.04.2009
Velikost: 33,50 kB
Komentáře
Tento materiál neobsahuje žádné komentáře.
Mohlo by tě zajímat:
Skupina předmětu Y04A2L - Anglický jazyk 2-2
Reference vyučujících předmětu Y04A2L - Anglický jazyk 2-2
Podobné materiály
- Y04A2Z - Anglický jazyk 2-1 - Prezentace A two-factor method_Kellerová Ludmila
- Y04A2Z - Anglický jazyk 2-1 - Prezentace A Way to Cut Fuel Consumption_Hybrid Vehicles_Pohlreich Martin
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Camera analogy_Hlopko Marcel
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Cogeneration_Balata Jan
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Content Management System
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Energy Green Paper_Pápai Ján
- Y04A2Z - Anglický jazyk 2-1 - Prezentace European Union_Kobetič Vladimír
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Five main EU institutions_Franěk Dominik
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Forms of Advertising_Šimáček Dalibor
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Future world_Daum Martin
- Y04A2Z - Anglický jazyk 2-1 - Prezentace History of the European Union
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Investment criteria for the selection of cogeneration plants_Muchka Václav
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Marketing research_Mach Jaroslav
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Mixed Reality Geographical Information System_Pavlišta Jiří
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Optical Mouse Principle_Pavelka Jiří
- Y04A2Z - Anglický jazyk 2-1 - Prezentace RADIO_Hilgert Luboš
- Y04A2Z - Anglický jazyk 2-1 - Prezentace Why the EU_Bartošová Veronika
- Y04A2Z - Anglický jazyk 2-1 - Prezentace wifi_Vančišin Jakub
- Y04A2L - Anglický jazyk 2-2 - Prezentace 3Dmodeling_Kučera Adam
- Y04A2L - Anglický jazyk 2-2 - Prezentace AutoCAD_Vagner Vlastimil
- Y04A2L - Anglický jazyk 2-2 - Prezentace Comparison_USA x GB_Běhounek Jan
- Y04A2L - Anglický jazyk 2-2 - Prezentace Data Storage
- Y04A2L - Anglický jazyk 2-2 - Prezentace Database modelling_Peisar Jakub
- Y04A2L - Anglický jazyk 2-2 - Prezentace Database_Tvaroh Tomáš
- Y04A2L - Anglický jazyk 2-2 - Prezentace EU Institutions_Krebs Zbyněk
- Y04A2L - Anglický jazyk 2-2 - Prezentace European Commission_Hilgert Luboš
- Y04A2L - Anglický jazyk 2-2 - Prezentace European Council_Boháčová Markéta
- Y04A2L - Anglický jazyk 2-2 - Prezentace Freedom, security and justice_Vedral Martin
- Y04A2L - Anglický jazyk 2-2 - Prezentace gdt_Dudová Kristýna
- Y04A2L - Anglický jazyk 2-2 - Prezentace Loudspeakers_Tománek Jakub
- Y04A2L - Anglický jazyk 2-2 - Prezentace Optical drives_Fábry Martin
- Y04A2L - Anglický jazyk 2-2 - Prezentace Schengen_Agreement_Kubera Ondřej, Klíma Zdeněk
- Y04A2L - Anglický jazyk 2-2 - Prezentace Separation of powers_Říha Vladimír
- Y04A2L - Anglický jazyk 2-2 - Prezentace SQL
- Y04A2L - Anglický jazyk 2-2 - Prezentace Surround sound_Vávra David
- Y04A2L - Anglický jazyk 2-2 - Prezentace System of government_Šimák Boris
- Y04A2L - Anglický jazyk 2-2 - Prezentace The European Economic and Social Committee_Mižík Peter
- Y04A2L - Anglický jazyk 2-2 - Prezentace Turning 2D Shapes into 3D Objects_Košlab Richard
- Y04A2L - Anglický jazyk 2-2 - Prezentace UDDI_Kalinová Petra
- Y04A2L - Anglický jazyk 2-2 - Prezentace UnitedStatesCongress_Přibyl Rostislav
- Y04A2L - Anglický jazyk 2-2 - Prezentace WCM and MLM system_Novák Vojtěch
- Y04A2L - Anglický jazyk 2-2 - Prezentace Web Content Management Systems_Balata Jan
- Y04A2L - Anglický jazyk 2-2 - Prezentace XMLaSOAP Michal
Copyright 2025 unium.cz


