Skip to content

Instantly share code, notes, and snippets.

@eezhal92
Created October 10, 2020 12:40
Show Gist options
  • Save eezhal92/9afe1de6f6931029f6e42f43e0a97464 to your computer and use it in GitHub Desktop.
Save eezhal92/9afe1de6f6931029f6e42f43e0a97464 to your computer and use it in GitHub Desktop.
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.31)
# Database: intro_sql_2
# Generation Time: 2020-10-10 12:39:31 +0000
# ************************************************************
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
# Dump of table krs
# ------------------------------------------------------------
DROP TABLE IF EXISTS `krs`;
CREATE TABLE `krs` (
`m_stambuk` varchar(20) NOT NULL,
`priode` int(5) NOT NULL,
`ip` float DEFAULT NULL,
PRIMARY KEY (`m_stambuk`,`priode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
LOCK TABLES `krs` WRITE;
/*!40000 ALTER TABLE `krs` DISABLE KEYS */;
INSERT INTO `krs` (`m_stambuk`, `priode`, `ip`)
VALUES
('f55120001',20201,3.6),
('f55120001',20202,3.9),
('f55120002',20201,3.29),
('f55120002',20202,4),
('f55120003',20201,2),
('f55120005',20201,2.5);
/*!40000 ALTER TABLE `krs` ENABLE KEYS */;
UNLOCK TABLES;
# Dump of table mahasiswa
# ------------------------------------------------------------
DROP TABLE IF EXISTS `mahasiswa`;
CREATE TABLE `mahasiswa` (
`stambuk` varchar(20) NOT NULL DEFAULT '',
`angkatan` varchar(4) DEFAULT NULL,
`nama` varchar(255) DEFAULT NULL,
PRIMARY KEY (`stambuk`),
UNIQUE KEY `stambuk` (`stambuk`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
LOCK TABLES `mahasiswa` WRITE;
/*!40000 ALTER TABLE `mahasiswa` DISABLE KEYS */;
INSERT INTO `mahasiswa` (`stambuk`, `angkatan`, `nama`)
VALUES
('f55120001','2020','Budi budiman'),
('f55120002','2020','Jane Doe'),
('f55120003','2020','Mary Sue'),
('f55120004','2020','Tanaka Tarou');
/*!40000 ALTER TABLE `mahasiswa` ENABLE KEYS */;
UNLOCK TABLES;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment