wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database MySQL - Command Prompt

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Memilih atau menggunakan database

a)

Show databases;

b)

Use database;

c)

select

d)

Desc

2.

Menampilkan seluruh database

a)

Show databases;

b)

show tables;

c)

use database

d)

Select

3.

Menampilkan seluruh isi data dari sebuah table

a)

Show databases

b)

Show tables

c)

Select * from table

d)

Select from table

4.

Melihat deskripsi atau struktur tabel

a)

Select

b)

Show tables

c)

Desc table

d)

Delete from table

5.

Menampilkan seluruh table dalam sebuah database

a)

Show tables;

b)

show databases;

c)

Desc table

d)

select * from table

6.

Kunci utama sebuah table disebut ....

a)

Foreign Key

b)

Key

c)

Null

d)

Primary Key

7.

Kunci tamu dalam sebuah table disebut ....

a)

Foreign key

b)

Key

c)

Primary Key

d)

NULL

8.

Perintah untuk menghapus tabel pada sebuah database adalah ....

a)

DELETE

b)

REMOVE

c)

DROP

d)

ALTER

9.

Annisa ingin melihat struktur table barang didalam database penjualan maka kode SQL yang perlu Annisa ketikkan adalah ....

a)

Select * from penjualan;

b)

Use penjualan;

c)

Desc penjualan;

d)

Show penjualan;

10.

kode untuk masuk ke server database MySQL adalah ....

a)

Use database

b)

Mysql -u root

c)

cd c://wamp64/bin/.....

d)

Create