TP 3
TP 3
27 19:35:15 2024
SQL> connect
Enter user-name: system
Enter password:
Connected.
SQL> CREATE TABLE APPAREIL (
2 CodeType VARCHAR2(20) PRIMARY KEY,
3 NbPlace NUMBER,
4 Design VARCHAR2(100)
5 );
Table created.
Table created.
Table created.
Table created.
Table created.
SQL> INSERT INTO APPAREIL VALUES ('B737', 180, 'Boeing 737 - Standard');
1 row created.
SQL> INSERT INTO APPAREIL VALUES ('A320', 160, 'Airbus A320 - Economy');
1 row created.
SQL> INSERT INTO AVION VALUES (101, 'B737', 2015, 'Airbus', 1200);
1 row created.
SQL> INSERT INTO AVION VALUES (102, 'A320', 2018, 'Boeing', 900);
1 row created.
SQL> INSERT INTO PILOTE VALUES (1, 'Jean Dupont', '123 Rue Paris', 3500, 500,
TO_DATE('2020-01-15', 'YYYY-MM-DD'));
1 row created.
SQL> INSERT INTO PILOTE VALUES (2, 'Alice Moreau', '456 Rue Lyon', 4200, 800,
TO_DATE('2018-06-01', 'YYYY-MM-DD'));
1 row created.
SQL> INSERT INTO VOL VALUES (301, 'Paris', 'Londres', 10, 30, 12, 45, 5);
1 row created.
SQL> INSERT INTO VOL VALUES (302, 'Tunis', 'Rome', 8, 0, 10, 15, 2);
1 row created.
1 row created.
1 row created.
LINE/COL ERROR
-------- -----------------------------------------------------------------
4/1 PL/SQL: SQL Statement ignored
5/25 PL/SQL: ORA-00933: SQL command not properly ended
7/5 PLS-00103: Encountered the symbol "IF" when expecting one of the
following:
; <an identifier> <a double-quoted delimited-identifier>
current delete exists prior <a single-quoted SQL string>
Procedure created.
Function created.
Table created.
Trigger created.
Trigger created.
Sequence created.
Trigger created.
1 row created.
NOPILOT NOM
---------- --------------------------------------------------
ADRESSE
--------------------------------------------------------------------------------
SALAIRE COMM EMBAUCHE
---------- ---------- --------
1 Jean Dupont
123 Rue Paris
3500 500 15/01/20
2 Alice Moreau
456 Rue Lyon
4200 800 01/06/18
NOPILOT NOM
---------- --------------------------------------------------
ADRESSE
--------------------------------------------------------------------------------
SALAIRE COMM EMBAUCHE
---------- ---------- --------
SQL>