Microsoft Windows [version 10.0.17134.
1130]
(c) 2018 Microsoft Corporation. Tous droits r�serv�s.
C:\Users\lenovo>cd\
C:\>cd xampp\mysql\bin
C:\xampp\mysql\bin>mysql.exe -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 120
Server version: 10.4.6-MariaDB mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use TP1
Database changed
MariaDB [TP1]> show tables
-> show tables;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'show
tables' at line 2
MariaDB [TP1]> show tables;
+---------------+
| Tables_in_tp1 |
+---------------+
| employes |
| projets |
+---------------+
2 rows in set (0.001 sec)
MariaDB [TP1]> describes emplyes
->
->
-> describes emplyes;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near
'describes emplyes
describes emplyes' at line 1
MariaDB [TP1]> describes employes;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near
'describes employes' at line 1
MariaDB [TP1]> describes emplyes;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near
'describes emplyes' at line 1
MariaDB [TP1]> describe emplyes;
ERROR 1146 (42S02): Table 'tp1.emplyes' doesn't exist
MariaDB [TP1]> decribe employes;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near
'decribe employes' at line 1
MariaDB [TP1]> describe employes;
+-------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+-------+
| CodeEmp | int(9) | NO | PRI | 0 | |
| NomEmp | varchar(255) | YES | | NULL | |
| PrenomEmp | varchar(255) | YES | | NULL | |
| TelEmpDom | varchar(100) | YES | | NULL | |
| TelEmpPro | varchar(100) | YES | | NULL | |
| MailEmp | varchar(255) | YES | | NULL | |
| societe | varchar(255) | YES | | NULL | |
| Adresse | varchar(255) | YES | | NULL | |
| ville | varchar(255) | YES | | NULL | |
| Nationalite | varchar(100) | YES | | NULL | |
+-------------+--------------+------+-----+---------+-------+
10 rows in set (0.011 sec)
MariaDB [TP1]> select nomemp from employes where nomemp like "m%" ;
+----------+
| nomemp |
+----------+
| Mona |
| Mercedes |
| Micah |
| Megan |
| Melvin |
| Mikayla |
| Mariam |
| Mary |
| Melanie |
+----------+
9 rows in set (0.000 sec)
MariaDB [TP1]> select budget from projets;
+--------+
| budget |
+--------+
| 369657 |
| 194011 |
| 953542 |
| 418574 |
| 741705 |
| 492299 |
| 896302 |
| 742778 |
| 539816 |
| 671547 |
| 675451 |
| 552126 |
| 32904 |
| 531135 |
| 960971 |
| 72757 |
| 77086 |
| 52442 |
| 999885 |
| 643137 |
| 780394 |
| 433413 |
| 69793 |
| 969342 |
| 342642 |
| 80742 |
| 29711 |
| 8346 |
| 978391 |
| 437525 |
| 936078 |
| 113386 |
| 518933 |
| 213852 |
| 960914 |
| 717489 |
| 97719 |
| 674979 |
| 148363 |
| 699123 |
| 59126 |
| 351959 |
| 3213 |
| 62893 |
| 850584 |
| 15385 |
| 94405 |
| 227723 |
| 446553 |
| 35299 |
| 715975 |
| 926226 |
| 99505 |
| 182249 |
| 70652 |
| 72857 |
| 45177 |
| 33093 |
| 188031 |
| 113222 |
| 373072 |
| 34000 |
| 683064 |
| 229443 |
| 825398 |
| 469515 |
| 503096 |
| 931358 |
| 25 |
| 819142 |
| 122876 |
| 211788 |
| 658683 |
| 199096 |
| 819488 |
| 291543 |
| 97767 |
| 485327 |
| 17 |
| 130022 |
| 595341 |
| 555394 |
| 829878 |
| 961993 |
| 36045 |
| 351723 |
| 857252 |
| 470162 |
| 477327 |
| 553191 |
| 435398 |
| 959635 |
| 640913 |
| 336144 |
| 977507 |
| 9898 |
| 684048 |
| 562182 |
| 28817 |
| 848591 |
+--------+
100 rows in set (0.000 sec)
MariaDB [TP1]> select budget from projets where budget like "100000%"
-> select budget from projets where budget like "100000%";
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'select
budget from projets where budget like "100000%"' at line 2
MariaDB [TP1]> select budget from projets where budget like "100000%";
Empty set (0.000 sec)
MariaDB [TP1]> select nomprojet from projets where budget > 100000;
+--------------------------------------+
| nomprojet |
+--------------------------------------+
| Integer Id Company |
| Consectetuer Foundation |
| Aenean Eget PC |
| Dictum Mi Ac Corporation |
| Dis Parturient Company |
| A Magna Lorem Foundation |
| Hendrerit Id Ante Industries |
| Ipsum Dolor Company |
| Venenatis Lacus Etiam Corporation |
| Augue PC |
| Nunc Mauris LLC |
| Et Rutrum Foundation |
| Praesent Associates |
| Etat France |
| Amet Nulla Donec Incorporated |
| Sed Consulting |
| Parturient Incorporated |
| Non Dui Nec Incorporated |
| Cr�ation pole petrole |
| Mollis Consulting |
| Nunc Foundation |
| Nisi Cum Sociis Company |
| Donec Felis Orci Foundation |
| Ut Industries |
| Habitant Industries |
| Vehicula LLC |
| Nunc Company |
| Iaculis Odio Nam Limited |
| Volutpat Nulla Facilisis Corp. |
| Blandit Corp. |
| Nunc Est Mollis LLP |
| Sodales Limited |
| Phasellus Dapibus Quam Associates |
| Sed Consequat Foundation |
| Libero Ltd |
| Interdum Industries |
| Enim Gravida Corp. |
| Urna Foundation |
| Mauris Company |
| Donec Luctus Aliquet Foundation |
| Facilisis Vitae Corporation |
| Dictum Company |
| Mauris Blandit Enim Foundation |
| Est Incorporated |
| Vitae Erat Institute |
| Nec Tellus Institute |
| Lacus Corp. |
| Augue Malesuada Malesuada Company |
| Felis Associates |
| Consequat Purus Maecenas Corporation |
| Sociis Natoque Industries |
| Non Justo Proin Corporation |
| Ipsum Dolor Foundation |
| Ut Associates |
| Nulla In Limited |
| Tempor Corp. |
| Nam LLP |
| Molestie Institute |
| Aliquet Diam Sed Limited |
| Massa Integer Vitae Company |
| Amet LLC |
| Quam A LLP |
| Integer Vitae Nibh LLP |
| Mauris Integer PC |
| Convallis In Cursus Consulting |
| Dignissim Associates |
| Malesuada Limited |
| Et Magnis PC |
| Auctor Nunc Ltd |
| Dolor Inc. |
| Facilisis Facilisis Corp. |
| Dolor Ltd |
| Nulla Facilisis Suspendisse Inc. |
+--------------------------------------+
73 rows in set (0.001 sec)
MariaDB [TP1]> select nomemp from employes where societe=BNPP;
ERROR 1054 (42S22): Unknown column 'BNPP' in 'where clause'
MariaDB [TP1]> select nomemp from employes where societe est BNPP;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'est
BNPP' at line 1
MariaDB [TP1]> select nomemp from employes where BNPP;
ERROR 1054 (42S22): Unknown column 'BNPP' in 'where clause'
MariaDB [TP1]> select nomemp,societe,ville from employes where ville="paris" or
ville="lyon";
+----------+------------------------------+-------+
| nomemp | societe | ville |
+----------+------------------------------+-------+
| Brandon | BNPP | Lyon |
| Amethyst | AXA | Paris |
| Althea | AXA | Paris |
| Barrett | BNPP | Lyon |
| Amela | AXA | Paris |
| Avram | Ridiculus Mus Aenean LLC | Paris |
| Brian | AXA | Lyon |
| Barry | BNPP | Lyon |
| Alma | AXA | Paris |
| Aubrey | Purus Institute | Paris |
| Arsenio | Auctor Velit Eget Foundation | Paris |
| Barry | BNPP | Lyon |
| Angela | Condimentum Donec At Company | Paris |
| Alden | AXA | Paris |
| Brynn | BNPP | Lyon |
| Bruce | BNPP | Lyon |
+----------+------------------------------+-------+
16 rows in set (0.001 sec)
MariaDB [TP1]> select nomemp,societe,ville from employes where ville="paris" or
ville="lyon" and societe ="BNPP";
+----------+------------------------------+-------+
| nomemp | societe | ville |
+----------+------------------------------+-------+
| Brandon | BNPP | Lyon |
| Amethyst | AXA | Paris |
| Althea | AXA | Paris |
| Barrett | BNPP | Lyon |
| Amela | AXA | Paris |
| Avram | Ridiculus Mus Aenean LLC | Paris |
| Barry | BNPP | Lyon |
| Alma | AXA | Paris |
| Aubrey | Purus Institute | Paris |
| Arsenio | Auctor Velit Eget Foundation | Paris |
| Barry | BNPP | Lyon |
| Angela | Condimentum Donec At Company | Paris |
| Alden | AXA | Paris |
| Brynn | BNPP | Lyon |
| Bruce | BNPP | Lyon |
+----------+------------------------------+-------+
15 rows in set (0.000 sec)
MariaDB [TP1]> select nomemp,societe,ville from employes where ville="paris" or
ville="lyon" and societe ="BNPP" order by ville;
+----------+------------------------------+-------+
| nomemp | societe | ville |
+----------+------------------------------+-------+
| Brandon | BNPP | Lyon |
| Barrett | BNPP | Lyon |
| Barry | BNPP | Lyon |
| Barry | BNPP | Lyon |
| Brynn | BNPP | Lyon |
| Bruce | BNPP | Lyon |
| Amethyst | AXA | Paris |
| Althea | AXA | Paris |
| Amela | AXA | Paris |
| Avram | Ridiculus Mus Aenean LLC | Paris |
| Alma | AXA | Paris |
| Aubrey | Purus Institute | Paris |
| Arsenio | Auctor Velit Eget Foundation | Paris |
| Angela | Condimentum Donec At Company | Paris |
| Alden | AXA | Paris |
+----------+------------------------------+-------+
15 rows in set (0.001 sec)
MariaDB [TP1]> select nomemp,societe,ville from employes where ville="paris" or
ville="lyon" and societe ="BNPP" order by ville descend;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near
'descend' at line 1
MariaDB [TP1]> select nomemp,societe,ville from employes where ville="paris" or
ville="lyon" and societe ="BNPP" order by ville desc;
+----------+------------------------------+-------+
| nomemp | societe | ville |
+----------+------------------------------+-------+
| Amethyst | AXA | Paris |
| Althea | AXA | Paris |
| Amela | AXA | Paris |
| Avram | Ridiculus Mus Aenean LLC | Paris |
| Alma | AXA | Paris |
| Aubrey | Purus Institute | Paris |
| Arsenio | Auctor Velit Eget Foundation | Paris |
| Angela | Condimentum Donec At Company | Paris |
| Alden | AXA | Paris |
| Brandon | BNPP | Lyon |
| Barrett | BNPP | Lyon |
| Barry | BNPP | Lyon |
| Barry | BNPP | Lyon |
| Brynn | BNPP | Lyon |
| Bruce | BNPP | Lyon |
+----------+------------------------------+-------+
15 rows in set (0.000 sec)
MariaDB [TP1]>