Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.


Your MySQL connection id is 899
Server version: 5.7.31 MySQL Community Server (GPL)

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its


affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database adotp4;


Query OK, 1 row affected (0.02 sec)

mysql> use adotp4;


Database changed
mysql> create table artiste(idActeur int(11) NOT NULL PRIMARY KEY
auto_increment,nom varchar(30) NOT NULL default '',
-> prenom varchar(30) NOT NULL default '',anneNaiss int(11) default NULL);
Query OK, 0 rows affected (0.02 sec)

mysql> insert into artiste values(6,'Cameron','James',1954);


Query OK, 1 row affected (0.00 sec)

mysql> insert into artiste values(3,'Hitchcock','Alfred',1899);


Query OK, 1 row affected (0.00 sec)

mysql> insert into artiste values(4,'Scott','Ridley',1937);


Query OK, 1 row affected (0.00 sec)

mysql> insert into artiste values(5,'Weaver','Sigourney',NULL);


Query OK, 1 row affected (0.00 sec)

mysql> insert into artiste values(8,'Winslett','Kate',NULL);


Query OK, 1 row affected (0.54 sec)

mysql> insert into artiste values(9,'Tarvoski','Andrei',1932);


Query OK, 1 row affected (0.00 sec)

mysql> insert into artiste values(10,'Woo','John',1946);


Query OK, 1 row affected (0.00 sec)

mysql> insert into artiste values(11,'Travolta','John',1954);


Query OK, 1 row affected (0.00 sec)

mysql> create table client(ncli INTEGER,nom varchar(10) NOT NULL,CONSTRAINT


pk_client PRIMARY KEY(ncli));
Query OK, 0 rows affected (0.02 sec)

mysql> insert into client values(60,'Marchand');


Query OK, 1 row affected (0.00 sec)

mysql> insert into client values(101,'Defrere');


Query OK, 1 row affected (0.00 sec)

mysql> insert into client values(102,'Rifflet');


Query OK, 1 row affected (0.00 sec)
mysql> insert into client values(103,'Ullman');
Query OK, 1 row affected (0.00 sec)

mysql> insert into client values(104,'Garey');


Query OK, 1 row affected (0.00 sec)

mysql> insert into client values(105,'Johnson');


Query OK, 1 row affected (0.00 sec)

mysql> insert into client values(106,'Vilarem');


Query OK, 1 row affected (0.00 sec)

mysql> insert into client values(107,'Jacob');


Query OK, 1 row affected (0.00 sec)

mysql> insert into client values(108,'Jamar');


Query OK, 1 row affected (0.00 sec)

mysql> insert into client values(109,'Smith');


Query OK, 1 row affected (0.00 sec)

You might also like