Advertisement
gundambison

datatable01-database

Aug 24th, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.54 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.8.2
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Aug 25, 2018 at 10:48 AM
  7. -- Server version: 5.7.23-0ubuntu0.16.04.1
  8. -- PHP Version: 7.0.31-1+ubuntu16.04.1+deb.sury.org+1SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  9. SET AUTOCOMMIT = 0;
  10. START TRANSACTION;
  11. SET time_zone = "+00:00";--
  12. -- Database: `erp_sda`
  13. ---- ----------------------------------------------------------
  14. -- Table structure for table `sda_wilayah`
  15. --CREATE TABLE `sda_wilayah` (
  16. `num` int(11) NOT NULL,
  17. `id` char(12) CHARACTER SET utf16 COLLATE utf16_unicode_ci NOT NULL,
  18. `id_parent` char(12) NOT NULL,
  19. `nama` varchar(50) NOT NULL,
  20. `id_jenis` int(11) NOT NULL
  21. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='summary';--
  22. -- Dumping data for table `sda_wilayah`
  23. --INSERT INTO `sda_wilayah` (`num`, `id`, `id_parent`, `nama`, `id_jenis`) VALUES
  24. (1, '11', '0', 'Aceh', 0),
  25. (2, '12', '0', 'Sumatera Utara', 0),
  26. (3, '13', '0', 'Sumatera Barat', 0),
  27. (4, '14', '0', 'Riau', 0),
  28. (5, '15', '0', 'Jambi', 0),
  29. (6, '16', '0', 'Sumatera Selatan', 0),
  30. (7, '17', '0', 'Bengkulu', 0),
  31. (8, '18', '0', 'Lampung', 0),
  32. (9, '19', '0', 'Kepulauan Bangka Belitung', 0),
  33. (10, '21', '0', 'Kepulauan Riau', 0),
  34. (11, '31', '0', 'DKI Jakarta', 0),
  35. (12, '32', '0', 'Jawa Barat', 0),
  36. (13, '33', '0', 'Jawa Tengah', 0),
  37. (14, '34', '0', 'DI Yogyakarta', 0),
  38. (15, '35', '0', 'Jawa Timur', 0),
  39. (16, '36', '0', 'Banten', 0),
  40. (17, '51', '0', 'Bali', 0),
  41. (18, '52', '0', 'Nusa Tenggara Barat', 0),
  42. (19, '53', '0', 'Nusa Tenggara Timur', 0),
  43. (20, '61', '0', 'Kalimantan Barat', 0),
  44. (21, '62', '0', 'Kalimantan Tengah', 0),
  45. (22, '63', '0', 'Kalimantan Selatan', 0),
  46. (23, '64', '0', 'Kalimantan Timur', 0),
  47. (24, '65', '0', 'Kalimantan Utara', 0),
  48. (25, '71', '0', 'Sulawesi Utara', 0),
  49. (26, '72', '0', 'Sulawesi Tengah', 0),
  50. (27, '73', '0', 'Sulawesi Selatan', 0),
  51. (28, '74', '0', 'Sulawesi Tenggara', 0),
  52. (29, '75', '0', 'Gorontalo', 0),
  53. (30, '76', '0', 'Sulawesi Barat', 0),
  54. (31, '81', '0', 'Maluku', 0),
  55. (32, '82', '0', 'Maluku Utara', 0),
  56. (33, '91', '0', 'Papua Barat', 0),
  57. (34, '92', '0', 'Papua', 0);--
  58. -- Indexes for dumped tables
  59. ----
  60. -- Indexes for table `sda_wilayah`
  61. --
  62. ALTER TABLE `sda_wilayah`
  63. ADD PRIMARY KEY (`num`),
  64. ADD UNIQUE KEY `id` (`id`),
  65. ADD KEY `id_parent` (`id_parent`),
  66. ADD KEY `nama` (`nama`),
  67. ADD KEY `id_jenis` (`id_jenis`);
  68.  
  69. --
  70. -- AUTO_INCREMENT for dumped tables
  71. --
  72.  
  73. --
  74. -- AUTO_INCREMENT for table `sda_wilayah`
  75. --
  76. ALTER TABLE `sda_wilayah`
  77. MODIFY `num` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
  78. COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement