!"# $ %& '( ! %& $ ' &)* + ! * $, $ (, ( '! -,) (# www.mysql.org!./0 *&23. mysql> select * from from clienti;



Similar documents
MS ACCESS DATABASE DATA TYPES

2/3/04 Doc 7 SQL Part 1 slide # 1

How To Create A Table In Sql (Ahem)

B.1 Database Design and Definition

Linas Virbalas Continuent, Inc.

A table is a collection of related data entries and it consists of columns and rows.

CSC 443 Data Base Management Systems. Basic SQL

sqlite driver manual

Extracting META information from Interbase/Firebird SQL (INFORMATION_SCHEMA)

Using SQL Server Management Studio

Database Migration from MySQL to RDM Server

Microsoft SQL connection to Sysmac NJ Quick Start Guide

MYSQL DATABASE ACCESS WITH PHP

A Brief Introduction to MySQL

Erste Schritte mit mysql. Der Umgang mit einer relationalen Datenbank

4 Logical Design : RDM Schema Definition with SQL / DDL

Information Technology NVEQ Level 2 Class X IT207-NQ2012-Database Development (Basic) Student s Handbook

Services. Relational. Databases & JDBC. Today. Relational. Databases SQL JDBC. Next Time. Services. Relational. Databases & JDBC. Today.

Comparison of Open Source RDBMS

not at all a manual simply a quick how-to-do guide

User's Guide and Software Design of. Job Tracking System for the NTC s Machine Shop Version 2.0

-- ROSE-MARIE BRISSON MATRICULE: MARIE-?VE BERTHIAUME MATRICULE: DROP TABLE VOL CASCADE CONSTRAINT; CREATE TABLE VOL (

IT2304: Database Systems 1 (DBS 1)

ODBC Client Driver Help Kepware, Inc.

A list of data types appears at the bottom of this document. String datetimestamp = new java.sql.timestamp(system.currenttimemillis()).

SQL 2: GETTING INFORMATION INTO A DATABASE. MIS2502 Data Analytics

Unifying the Global Data Space using DDS and SQL

Online shopping cart. Tarik Guelzim Graduate school of computer science at Monmouth University. CS517 Database management systems Project 2

Database Design and Programming

MariaDB Cassandra interoperability

EECS 647: Introduction to Database Systems

The Development of a FTP Bandwidth Monitoring Tool for the ENABLE Project. A Project Funded by DOE

SQL Server An Overview

CREATE TABLE FUNCAO ( idfuncao INTEGER NOT NULL, DESCRICAO VARCHAR NULL, PRIMARY KEY(idFUNCAO) );

Chapter 30 Exporting Inventory Management System Data

IT2305 Database Systems I (Compulsory)

4 Simple Database Features

Ontrack PowerControls V8.1 for SQL ReadMe

Microsoft SQL Server to Infobright Database Migration Guide

MySQL 5.1 INTRODUCTION 5.2 TUTORIAL

Organization of Records in Blocks

DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.

Financial Data Access with SQL, Excel & VBA

C++ Wrapper Library for Firebird Embedded SQL

Create a Database Driven Application

Data Warehouse and Hive. Presented By: Shalva Gelenidze Supervisor: Nodar Momtselidze

Database Administration with MySQL

Interfacing Fedora with Microsoft SQL Server

Conventional Files versus the Database. Files versus Database. Pros and Cons of Conventional Files. Pros and Cons of Databases. Fields (continued)

SQL: joins. Practices. Recap: the SQL Select Command. Recap: Tables for Plug-in Cars

Relational databases and SQL

TANGO Device Server Design Guidelines HDB++ Outdone. Design and implementation. Changed by: Lorenzo Pivetta Date: :32:36Z Revision: 26526

StruxureWare Power Monitoring Database Upgrade FAQ

User's Guide. and Software Design of. a Web Based Task Tracking System Version 1.0

Measuring Firebird Disc I/O

Working with DB2 UDB objects

--- Vincent Hamel, hamv

Best Practices in SQL Programming. Madhivanan

Advanced SQL. Jim Mason. Web solutions for iseries engineer, build, deploy, support, train

Summary on Chapter 4 Basic SQL

SQL. Short introduction

versions and later Honeywell Security and Custom Electronics User Guide K /07 Rev. A

PassMark Software BurnInTest Management Console. Quick start guide

Below is a table called raw_search_log containing details of search queries. user_id INTEGER ID of the user that made the search.

The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala , as well as the version history.

SQL DATA DEFINITION: KEY CONSTRAINTS. CS121: Introduction to Relational Database Systems Fall 2015 Lecture 7

Customer Bank Account Management System Technical Specification Document

Database Query 1: SQL Basics

Oracle Database 10g Express

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL

Creating Database Tables in Microsoft SQL Server

IRF2000 IWL3000 SRC1000 Application Note - Apps with OSGi - Condition Monitoring with WWH push

RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague

Language Reference Guide

Physical Design. Meeting the needs of the users is the gold standard against which we measure our success in creating a database.

SQL NULL s, Constraints, Triggers

MySQL+HandlerSocket=NoSQL

Spectrum Technology Platform. Version 9.0. Enterprise Data Integration Guide

COSC344 Database Theory and Applications. Java and SQL. Lecture 12

Resco CRM Server Guide. How to integrate Resco CRM with other back-end systems using web services

Ontrack PowerControls User Guide Version 8.0

Teradata Database. SQL Reference. Data Types and Literals

New Features in MySQL 5.0, 5.1, and Beyond

XEP-0043: Jabber Database Access

Once the schema has been designed, it can be implemented in the RDBMS.

Section of DBMS Selection & Evaluation Questionnaire

Advance DBMS. Structured Query Language (SQL)

Introduction to the onepoint PROJECTS Database Schema Dieter Freismuth, Director Development. Technical White Paper

The Relational Model. Why Study the Relational Model? Relational Database: Definitions

Intro to Databases. ACM Webmonkeys 2011

Information Systems SQL. Nikolaj Popov

MySQL Job Scheduling

database abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia

SQL Server Table Design - Best Practices

Introduction to SQL and database objects

Question 1. Relational Data Model [17 marks] Question 2. SQL and Relational Algebra [31 marks]

EDI Process Specification

Manual. TC3 Database Server. TwinCAT. Version Date Order No TF6420

Apache Cassandra Query Language (CQL)

Full Text Search in MySQL 5.1 New Features and HowTo

Transcription:

! "# $ %& '(! %& $ ' &)* +! * $, $ (, ( '! -,) (# www.mysql.org!./0 *&23 mysql> select * from from clienti; " "!"# $!" 1 1

5#',! INTEGER [(N)] [UNSIGNED] $ - 6$ 17 8 17 79 $ - 6: 1 79 $.;0'<' '! %' $ = INTEGER $ = INTEGER UNSIGNED $ = INTEGER (8) $ = > INTEGER (5) UNSIGNED 4 5#',! SMALLINT [(N)] [UNSIGNED] $ - 6$ 7> 8 7> 79 $ - 6: 7? 79! BIGINT [(N)] [UNSIGNED] $ - 6$?1 8?1 79 $ - 6:?4 79! BOOL BOOLEAN > 5#',-! - DECIMAL [(N[,D])] [UNSIGNED] $ - ' ' $ @.' A0 $ %, 7:4 DECIMAL (10,4)! B A- FLOAT [(N,D)] [UNSIGNED] $ - ' ' $ @.' A0 $ C, ' $ ),'' ' DOUBLE [(N,D)] [UNSIGNED]? 2

5#', E+! CHAR $ (! + + CHAR (N) $.;0"( $ ='.;0 '! + +* ) VARCHAR (N) $.;0"( $ =' * ' '! "# # % $ %,'Una Stringa ' D 5#', EF! DATE $ C YYYY-MM-DD $ - '1000-01-01' '9999-12-31'! F TIME $ C HH:MM:SS! 8F DATETIME $ C YYYY-MM-DD HH:MM:SS $ - '1000-01-01 00:00:00' '9999-12-31 23:59:59! F TIMESTAMP $ C YYYY-MM-DD HH:MM:SS $ - 1970-01-01 00:00:00' 2037-12-31 23:59:59! * ' INTERVAL $ ;'' (#, E! CREATE SCHEMA nome-schema ;! (# CREATE DATABASE [IF NOT EXISTS] db_name [spec [,spec ] ] ; $ + )H 2 ) / $ '' *'! =(#, USE db_name ;! (#, DROP DATABASE [IF EXISTS] db_name ; G 3

, ) & '( ) CREATE TABLE table_name ( NomeAttr1 tipoattr1, NomeAttr2 tipoatt2, ); ) DROP TABLE table_name [IF EXISTS]; 7:,%' ) Amici(Nome,Cognome,Soprannome, NumTelefono,Email) nome varchar(30), cognome varchar(30), soprannome varchar(20), numtelefono varchar(20), * % * 77,%' ) Amici(Nome,Cognome,Soprannome, NumTelefono,Email) soprannome varchar(20) not null primary key, numtelefono varchar(20), 'not null( + 'primary key(, 7 4

,@+ &' Amici(Nome,Cognome,Soprannome, NumTelefono,Email) mysql> describe Amici; +-------------+-------------+------+-----+---------+-------+ Field Type Null Key Default Extra +-------------+-------------+------+-----+---------+-------+ nome varchar(30) cognome varchar(30) soprannome varchar(20) PRI numtelefono varchar(20) YES NULL email varchar(30) YES NULL +-------------+-------------+------+-----+---------+-------+ 5 rows in set (0.00 sec) - './-.01(2!" )) 71,@ "$ ) ' (, 3 % nome varchar(30) not null default Sconosciuto, cognome varchar(30) not null default Sconosciuto, soprannome varchar(20) not null primary key, numtelefono varchar(20), $ '(' ( ' # ( # 4 $ 74,'+ * 5, $ ) 'unique( nome varchar(30) not null default Sconosciuto, cognome varchar(30) not null default Sconosciuto, soprannome varchar(20) not null primary key, numtelefono varchar(20) not null unique, ' (, 7> 5

,'+ *, 6 $ ) 'unique( soprannome varchar(20) not null primary key, numtelefono varchar(20) not null unique, email varchar(30), unique (nome,cognome) ); ' ( ' # (, 7?,@ -## $ ) 'references( # Prestito(Soprannome,TitoloLibro,DataRestituzione) Amici(Nome,Cognome,Soprannome,NumTelefono,Email) soprannome varchar(20) not null primary key, numtelefono varchar(30) not null unique, create table Prestiti ( soprannome varchar (20) references Amici(soprannome), titololibro varchar (30) not null, DataRest date not null, primary key (soprannome,titololibro)); 7D,B+* '7 ( '(8 Prestito(Soprannome,TitoloLibro,DataRestituzione) Amici(Nome,Cognome,Soprannome,NumTelefono,Email)! B7,;&'no action! B,B' & cascade $ I '! B1,* ;=set null $ *J *J* & + 'K! B4,=* set default $ *J *J* & + 'K 7 6

,B+* '7 ( '(8 Prestito(Soprannome,TitoloLibro,DataRestituzione) Amici(Nome,Cognome,Soprannome,NumTelefono,Email) create table Prestiti ( soprannome varchar (20) references Amici(soprannome) on delete politica on update politica, titololibro varchar (30) not null, DataRest date not null, primary key (soprannome,titololibro)); 7G,B+* '7 ( '(8 9 :## Prestito(Soprannome,TitoloLibro,DataRestituzione) Amici(Nome,Cognome,Soprannome,NumTelefono,Email) create table Prestiti ( soprannome varchar (20) references Amici(soprannome) on delete cascade on update cascade, titololibro varchar (30) not null, DataRest date not null, primary key (soprannome,titololibro)); :,@ 'K ' '(' # ( Prestito(Nome,Cognome,TitoloLibro,DataRestituzione) Amici(Nome,Cognome,NumTelefono,Email) numtelefono varchar(30) not null unique, email varchar(30), primary key (nome,cognome)); create table Prestiti ( titololibro varchar(30) not null, DataRest date not null, primary key (nome,cognome,titololibro), foreign key (nome,cognome) references Amici(nome,cognome) on delete cascade on update cascade); 7 7

, 'J! '*'.J0! (#'' A#L. H0! 'J* + * id_amico integer auto_increment unique, numtelefono varchar(30) not null unique, email varchar(30), primary key (id_amico)); 8