Perintah Insert DML(data Manipulation Langangue)

 DML

Microsoft Windows [Version 10.0.26100.6725]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Bahtra-12>cd c://xampparya/mysql/bin

c:\xampparya\mysql\bin>mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.4.32-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)]> show databases;
+--------------------------+
| Database                 |
+--------------------------+
| db_sekolah               |
| db_smk                   |
| information_schema       |
| mysql                    |
| penilaian_db             |
| performance_schema       |
| phpmyadmin               |
| pt_bahagia_idkho_mandiri |
| pt_sejahteraarya         |
| smk                      |
| test                     |
+--------------------------+
11 rows in set (0.001 sec)

MariaDB [(none)]> use db_smk;
Database changed
MariaDB [db_smk]> Show tables;
+------------------+
| Tables_in_db_smk |
+------------------+
| tb_identitas     |
| tb_siswa         |
+------------------+
2 rows in set (0.001 sec)

MariaDB [db_smk]> select * from tb_siswa;
+-----+------+---------------+--------------+---------------+-----------------+
| nis | nama | jenis_kelamin | tempat_lahir | tanggal_lahir | nama_ibukandung |
+-----+------+---------------+--------------+---------------+-----------------+
| 123 | Aan  | Laki-laki     | Pandegalang  | 2005-11-30    | Siti            |
| 124 | Iin  | Perempuan     |              | NULL          | Ani             |
| 125 | Arya | Laki-laki     |              | 2009-01-16    | yani            |
+-----+------+---------------+--------------+---------------+-----------------+
3 rows in set (0.000 sec)

Komentar

Postingan populer dari blog ini

Fungsi Rekursif

CRUD DataBase menggunakan PHP