
Linguaggio SQL
Presentation
•
Computers
•
11th Grade
•
Easy
Lucia Intelisano
Used 14+ times
FREE Resource
17 Slides • 4 Questions
1
L.I.
2
Un DBMS deve disporre di un linguaggio per:
definire e creare il database: DDL - Data Definition Language
inserire, cancellare e modificare i dati: DML - Data Manipulation Language
interrogare il database per estrarre informazioni: QL - Query Language
Il linguaggio deve permettere di fare tutto questo facilmente ed essere basato su costrutti semplici e facili da imparare. Le sue caratteristiche, infine, devono essere standardizzate in modo che un utente, cambiando DBMS, non debba apprendere un nuovo linguaggio per usare la base dati.
3
Multiple Choice
L'acronimo DBMS sta per:
Database Management System
Data Basic Management System
Database Monitoring System
Database Management Security
4
Il linguaggio SQL (Structured Query Language) è nato con lo scopo di poter eseguire con facilità:
la definizione e la creazione di un database relazionale;
le diverse operazioni di gestione dei dati, quali l’inserimento, la cancellazione e la varia-zione dei record di un archivio;
l’interrogazione del database per estrarre informazioni.
5
Multiple Choice
SQL sta per
Stop Queue Language
Structured Query Language
Start Query Language
Slow Queue Language
6
Il linguaggio SQL consente all’utente di:
•definire il database, la struttura delle tabelle che lo compongono, gli indici, le associazioni tra le tabelle (funzioni di DDL, Data Definition Language);
• modificare i dati contenuti nel database, con le operazioni di inserimento, variazione e cancellazione, ed effettuare le interrogazioni (funzioni di DML, Data Manipulation Language);
• definire gli utenti e controllare gli accessi al database (funzioni di DCL, Data Control Language);
7
Multiple Choice
Il Data Definition Language è:
Un'estensione di SQL
La parte SQL che definisce la struttura di un database
La parte SQL che manipola i dati contenuti in un database
Un estensione di DML
8
MySQL
MySQL è un RDBMS* open source e libero, e rappresenta una delle tecnologie più note e diffuse nel mondo dell’IT.
MySQL nacque nel 1996 per opera dell’azienda svedese Tcx, basato su un DBMS relazionale preesistente, chiamato mSQL.
Il progetto venne distribuito in modalità open source per favorirne la crescita.
RDBMS: relational database management system
9
creare un database
CREATE DATABASE nuovodb;
Some text here about the topic of discussion
10
USE nuovodb;
11
Creare tabelle MySQL
CREATE TABLE IF NOT EXISTS Persone (
IDPERSONA INT NOT NULL AUTO_INCREMENT,
Nome VARCHAR(45) NOT NULL,
Cognome VARCHAR(45) NOT NULL,
DataDiNascita DATE NOT NULL,
Sesso ENUM('M','F') NOT NULL,
PRIMARY KEY (id)) ;
12
ALTER TABLE Persone RENAME Individui;
13
Modifica di nome e tipo di dato dei campi
ALTER TABLE Individui CHANGE Nome NomeIndividuo varchar(100);
14
ALTER TABLE Persone ADD n_telefono INT;
15
DROP TABLE table_name ;
16
Multiple Choice
Per modificare la struttura di una tabella, si usa il comando:
CREATE
DROP
UPDATE
ALTER
17
Numerici
18
Numerici
19
Stringa
20
Data
21
corsi(IDCORSO,titolo,docente,anno)
esami(idmatricola*, idcorso*, voto, lode, dataesame)
studente(IDMATRICOLA,nome,cognome, citta, datanascita )
romanzi(IDROMANZO, Titolo, Anno)
romanziautori(idromanzo,idautore)
autori(IDAUTORE, NomeAut, AnnoN, Nazione)
L.I.
Show answer
Auto Play
Slide 1 / 21
SLIDE
Similar Resources on Wayground
16 questions
Persebaran flora dan Fauna
Presentation
•
11th Grade
13 questions
Internet of Everything
Presentation
•
11th Grade
13 questions
Virtual LAN
Presentation
•
11th Grade
17 questions
Linux Debian
Presentation
•
11th Grade
17 questions
2. Struktur Data C dan Compiler
Presentation
•
11th Grade
15 questions
energia
Presentation
•
11th Grade
19 questions
ASJ - Sistem Operasi Jaringan
Presentation
•
11th Grade
15 questions
BAHASA INDONESIA KELAS 5
Presentation
•
KG
Popular Resources on Wayground
10 questions
How much do you know about our Portrait of an Eagle?
Quiz
•
10th Grade
10 questions
Fast Food Slogans
Quiz
•
6th - 8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade