Monday, July 23, 2012
Membuat database mata kuliah dengan Mysql
create database matakuliah;
use matakulia;
create table daftar (noMK char(10) primary key,namaMk char(20),Sks int,Dosen char(20));
insert into daftar (noMK,namaMK,Sks,Dosen) values
('1321','Visual Basic.net',3,'Amak yunus'),
('1521','Sistem Basis Data',3,'Syaiful'),
('1246','Sistem Berkas',3,'Syaiful'),
('321','Statistik',3,'Joko Cahyono'),
('220','Pemrograman C++',3,'Wiji setyaningsih'),
('331','Kalkulus',3,'Joko Cahyono'),
('899','Struktur Data',3,'Kadwi'),
('4457','Logika Informatika',3,Wisnu);
update daftar set gender='L' where Dosen = 'Joko Cahyono';
alter table daftar modify gender char(5);
alter table daftar add gender char(2);
alter table daftar change gender jeniskelamin char(2);
alter table daftar drop column jenis kelamin;
Labels:
mysql
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment