SlideShare a Scribd company logo
Desain dan
Implementasi
Basisdata
Teknik Elektro Konsentrasi Software
Engineering GCS SINGAPURA
Praktikum Design
Table
TABLE OF CONTENTS
Here you could describe
the topic of the section
03
Here you could describe
the topic of the section
04
Here you could describe
the topic of the section
01
Here you could describe
the topic of the section
02
Create & Drop Database
Create & Drop Table
Change Design Table
Insert Data
Create & Drop Database
- Create Database database_name
- Drop Database database_name
- Show databases;
- Use Database database_name
GOSTUDIO
Drop Table
Drop table table_name
GOSTUDIO
Create Table
Create table customer
(id int primary key auto_increment,
First_name varchar(100),
Last_name varchar(100)
);
Describe customer;
GOSTUDIO
Modify Table
Alter table customer
Modify first_name varchar(40) NOT
NULL,
Modify last_name varchar(40) NOT NULL,
;
Add & drop Field in
Table
Alter table customer
add email varchar(40) NOT NULL;
Alter table customer
drop email;
Alter table customer
change email email_address varchar(60);
Change Null field
Alter table customer
modify email varchar(40) NOT NULL;
Default field
Alter table customer
Add is_active varchar(3) default 0;
Extra Field
Alter table customer
Add update_date datatime not null
default current_timestamp on update
current_timestamp;
Insert Data

More Related Content

PPTX
komputasi_terdistribusi teknik komputer.pptx
PPTX
distributed storage kelompokjjfjj 2.pptx
PPTX
7. PENGORGANISASIAN_REVISI_PESAN_PESAN_BISN.pptx
PPTX
Jenis_Jenis_Pesan_Bisnis yang ada pada.pptx
PDF
PPT kelompok 4 data Virtualization.pdf
PPT
p09-pemrograman-web-dengan-oop pada bahasa php
PPT
[3] penjelasan Routing Tingkat Lanjut.ppt
PPT
Penjelasan Virtual Local Area Network (VLAN)
komputasi_terdistribusi teknik komputer.pptx
distributed storage kelompokjjfjj 2.pptx
7. PENGORGANISASIAN_REVISI_PESAN_PESAN_BISN.pptx
Jenis_Jenis_Pesan_Bisnis yang ada pada.pptx
PPT kelompok 4 data Virtualization.pdf
p09-pemrograman-web-dengan-oop pada bahasa php
[3] penjelasan Routing Tingkat Lanjut.ppt
Penjelasan Virtual Local Area Network (VLAN)

More from MSyahidNurWahid (13)

PPT
penjelasan Routing pada pemrogramana jaringan
PPTX
ujian tengah semester keamanan web dan basisdata
PPTX
Pertemuan 10 monitoring 1 and logging in server
PPTX
Pertemuan 3 - Entitiy Relationship DIagram (ERD).pptx
PPTX
keamanan website.pptx
PPTX
keamanan sistem informasi
PPTX
keamanan sistem informasi
PPT
3. Protokol Jaringan Komputer.ppt
PPTX
Arsitektur sistem terdistribusi
PDF
Panduan Konfigurasi MK RPL (1).pdf
PPTX
Variabel.pptx
PDF
Implementasi Literasi Digital-2 (1).pdf
PPTX
Aplikasi JTIK.pptx
penjelasan Routing pada pemrogramana jaringan
ujian tengah semester keamanan web dan basisdata
Pertemuan 10 monitoring 1 and logging in server
Pertemuan 3 - Entitiy Relationship DIagram (ERD).pptx
keamanan website.pptx
keamanan sistem informasi
keamanan sistem informasi
3. Protokol Jaringan Komputer.ppt
Arsitektur sistem terdistribusi
Panduan Konfigurasi MK RPL (1).pdf
Variabel.pptx
Implementasi Literasi Digital-2 (1).pdf
Aplikasi JTIK.pptx
Ad

Recently uploaded (20)

PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Trump Administration's workforce development strategy
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
What if we spent less time fighting change, and more time building what’s rig...
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
My India Quiz Book_20210205121199924.pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
History, Philosophy and sociology of education (1).pptx
Trump Administration's workforce development strategy
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Unit 4 Computer Architecture Multicore Processor.pptx
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Paper A Mock Exam 9_ Attempt review.pdf.
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Share_Module_2_Power_conflict_and_negotiation.pptx
Indian roads congress 037 - 2012 Flexible pavement
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Virtual and Augmented Reality in Current Scenario
FORM 1 BIOLOGY MIND MAPS and their schemes
What if we spent less time fighting change, and more time building what’s rig...
Ad

Desain dan Implementasi Basisdata (Praktikum)

  • 1. Desain dan Implementasi Basisdata Teknik Elektro Konsentrasi Software Engineering GCS SINGAPURA Praktikum Design Table
  • 2. TABLE OF CONTENTS Here you could describe the topic of the section 03 Here you could describe the topic of the section 04 Here you could describe the topic of the section 01 Here you could describe the topic of the section 02 Create & Drop Database Create & Drop Table Change Design Table Insert Data
  • 3. Create & Drop Database - Create Database database_name - Drop Database database_name - Show databases; - Use Database database_name GOSTUDIO
  • 4. Drop Table Drop table table_name GOSTUDIO
  • 5. Create Table Create table customer (id int primary key auto_increment, First_name varchar(100), Last_name varchar(100) ); Describe customer; GOSTUDIO
  • 6. Modify Table Alter table customer Modify first_name varchar(40) NOT NULL, Modify last_name varchar(40) NOT NULL, ;
  • 7. Add & drop Field in Table Alter table customer add email varchar(40) NOT NULL; Alter table customer drop email; Alter table customer change email email_address varchar(60);
  • 8. Change Null field Alter table customer modify email varchar(40) NOT NULL;
  • 9. Default field Alter table customer Add is_active varchar(3) default 0;
  • 10. Extra Field Alter table customer Add update_date datatime not null default current_timestamp on update current_timestamp;