Advertisement
ridyko

TBL_MAHASISWA :

Feb 19th, 2022
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 1.18 KB | None | 0 0
  1. USE [DB_JNM]
  2. GO
  3.  
  4. CREATE TABLE [dbo].[TBL_MAHASISWA](
  5.  [NIM] [VARCHAR](6) NOT NULL,
  6.  [NamaMahasiswa] [VARCHAR](100) NULL,
  7.  [JenisKelamin] [VARCHAR](20) NULL,
  8.  [AlamatMahasiswa] [VARCHAR](100) NULL,
  9.  [TeleponMahasiswa] [VARCHAR](20) NULL,
  10.  [KodeJurusan] [VARCHAR](6) NULL,
  11.  CONSTRAINT [PK_TBL_MAHASISWA] PRIMARY KEY CLUSTERED
  12. (
  13.  [NIM] ASC
  14. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  15. ) ON [PRIMARY]
  16. GO
  17.  
  18. INSERT INTO [dbo].[TBL_MAHASISWA]
  19.  ([NIM],[NamaMahasiswa],[JenisKelamin],[AlamatMahasiswa],[TeleponMahasiswa],[KodeJurusan])
  20.  VALUES
  21.  ('NIM001','Ahmad Santoso','LAKI-LAKI','Jalan Jeruk No 1','02111111','JUR001'),
  22.  ('NIM002','Budi Hartono','LAKI-LAKI','Jalan Salak No 2','02122222','JUR001'),
  23.  ('NIM003','Carles Bona','LAKI-LAKI','Jalan Anggur No 3','02133333','JUR002'),
  24.  ('NIM004','Dodi Riyadi','LAKI-LAKI','Jalan Durian No 4','02144444','JUR003'),
  25.  ('NIM005','Edi Wibowo','LAKI-LAKI','Jalan Manga No 5','02155555','JUR002'),
  26.  ('NIM006','Fenty Yuliana','PEREMPUAN','Jalan Kelengkeng No 6','02166666','JUR002'),
  27.  ('NIM007','Gita Cita','PEREMPUAN','Jalan Pisang No 7','02177777','JUR004')
  28. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement