Advertisement
Doctor0L

Data.sql

May 1st, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 3.28 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 3.5.2.2
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: 127.0.0.1
  6. -- Generation Time: May 02, 2013 at 12:57 PM
  7. -- Server version: 5.5.27
  8. -- PHP Version: 5.4.7
  9.  
  10. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13.  
  14. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  15. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  16. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  17. /*!40101 SET NAMES utf8 */;
  18.  
  19. --
  20. -- Database: `d_smkn2`
  21. --
  22.  
  23. -- --------------------------------------------------------
  24.  
  25. --
  26. -- Table structure for table `d_admin`
  27. --
  28.  
  29. CREATE TABLE IF NOT EXISTS `d_admin` (
  30.   `id_admin` int(35) NOT NULL,
  31.   `username` varchar(15) NOT NULL,
  32.   `password` text NOT NULL,
  33.   `nama` char(60) NOT NULL,
  34.   `email` varchar(100) NOT NULL,
  35.   `last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  36.   PRIMARY KEY (`id_admin`),
  37.   UNIQUE KEY `username` (`username`,`email`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  39.  
  40. -- --------------------------------------------------------
  41.  
  42. --
  43. -- Table structure for table `d_jurusan`
  44. --
  45.  
  46. CREATE TABLE IF NOT EXISTS `d_jurusan` (
  47.   `id_jurusan` int(10) NOT NULL AUTO_INCREMENT,
  48.   `jurusan` varchar(60) NOT NULL,
  49.   PRIMARY KEY (`id_jurusan`)
  50. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  51.  
  52. -- --------------------------------------------------------
  53.  
  54. --
  55. -- Table structure for table `d_kota`
  56. --
  57.  
  58. CREATE TABLE IF NOT EXISTS `d_kota` (
  59.   `id_kota` int(10) NOT NULL,
  60.   `kota` char(35) NOT NULL,
  61.   PRIMARY KEY (`id_kota`)
  62. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  63.  
  64. -- --------------------------------------------------------
  65.  
  66. --
  67. -- Table structure for table `d_nilai`
  68. --
  69.  
  70. CREATE TABLE IF NOT EXISTS `d_nilai` (
  71.   `id_nilai` int(35) NOT NULL,
  72.   `mtk` int(10) NOT NULL,
  73.   `bhs_indo` int(10) NOT NULL,
  74.   `bhs_ing` int(10) NOT NULL,
  75.   `produktif` int(10) NOT NULL,
  76.   `rr` varchar(10) NOT NULL,
  77.   `id_status` int(5) NOT NULL,
  78.   PRIMARY KEY (`id_nilai`)
  79. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  80.  
  81. -- --------------------------------------------------------
  82.  
  83. --
  84. -- Table structure for table `d_siswa`
  85. --
  86.  
  87. CREATE TABLE IF NOT EXISTS `d_siswa` (
  88.   `id_siswa` int(35) NOT NULL AUTO_INCREMENT,
  89.   `id_nilai` int(35) NOT NULL,
  90.   `nama` char(100) NOT NULL,
  91.   `alamat` text NOT NULL,
  92.   `no_telepon` int(20) NOT NULL,
  93.   `no_ujian` int(25) NOT NULL,
  94.   `tgl_lahir` int(10) NOT NULL,
  95.   `email` varchar(50) NOT NULL,
  96.   `id_kota` int(10) NOT NULL,
  97.   `id_jurusan` int(10) NOT NULL,
  98.   `jenis_kelamin` char(25) NOT NULL,
  99.   `last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  100.   `image` text NOT NULL,
  101.   PRIMARY KEY (`id_siswa`),
  102.   UNIQUE KEY `no_ujian` (`no_ujian`)
  103. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  104.  
  105. -- --------------------------------------------------------
  106.  
  107. --
  108. -- Table structure for table `d_status`
  109. --
  110.  
  111. CREATE TABLE IF NOT EXISTS `d_status` (
  112.   `id_status` int(10) NOT NULL,
  113.   `status` text NOT NULL,
  114.   PRIMARY KEY (`id_status`)
  115. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  116.  
  117. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  118. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  119. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement