Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 4.4.15.9
- -- https://www.phpmyadmin.net
- --
- -- Host: localhost
- -- Generation Time: Sep 06, 2019 at 02:04 PM
- -- Server version: 5.6.37
- -- PHP Version: 7.2.22
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET time_zone = "+00:00";
- --
- -- Database: `testing`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `kota`
- --
- CREATE TABLE IF NOT EXISTS `kota` (
- `id` int(11) NOT NULL,
- `code` char(11) NOT NULL,
- `name` varchar(110) NOT NULL,
- `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
- ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `kota`
- --
- INSERT INTO `kota` (`id`, `code`, `name`, `created_at`, `updated_at`) VALUES
- (1, 'JK', 'Jakarta', '2019-09-06 11:44:20', '2019-09-06 11:44:20'),
- (2, 'SB', 'Surabaya', '2019-09-06 11:44:20', '2019-09-06 11:44:20'),
- (3, 'BL', 'Bali', '2019-09-06 11:44:20', '2019-09-06 11:44:20'),
- (4, 'BD', 'BANDUNG', '2019-09-06 11:44:20', '2019-09-06 11:44:20'),
- (5, 'SMG', 'SEMARANG', '2019-09-06 11:44:20', '2019-09-06 11:45:09'),
- (6, 'SL', 'SOLO', '2019-09-06 11:44:43', '2019-09-06 11:44:43'),
- (7, 'SJ', 'SALATIGA', '2019-09-06 11:44:43', '2019-09-06 11:44:43');
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `kota`
- --
- ALTER TABLE `kota`
- ADD PRIMARY KEY (`id`),
- ADD UNIQUE KEY `kode` (`code`),
- ADD KEY `nama` (`name`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT for table `kota`
- --
- ALTER TABLE `kota`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement