Skip to content

Instantly share code, notes, and snippets.

@debbysa
Created March 3, 2025 02:52
Show Gist options
  • Save debbysa/fcab412465bb8392eb368c6f96343962 to your computer and use it in GitHub Desktop.
Save debbysa/fcab412465bb8392eb368c6f96343962 to your computer and use it in GitHub Desktop.
INSERT INTO regions (id, name, parent_id, population) VALUES
(1, 'Jawa Barat', NULL, 0), -- Provinsi
(2, 'Jakarta', NULL, 0), -- Provinsi
(3, 'Bandung', 1, 3000000), -- Kota di Jawa Barat
(4, 'Bekasi', 1, 2800000), -- Kota di Jawa Barat
(5, 'Depok', 1, 2200000), -- Kota di Jawa Barat
(6, 'Jakarta Pusat', 2, 1100000), -- Kota di Jakarta
(7, 'Jakarta Selatan', 2, 2000000), -- Kota di Jakarta
(8, 'Jawa Timur', null, 0),
(9, 'Malang', 8, 889359),
(10, 'Batu', 8, 225408),
(11, 'Madiun', 8, 201733),
(12, 'Probolinggo', 8, 243746),
(13, 'Jawa Tengah', null, 0),
(14, 'Solo', 13, 522364),
(15, 'Semarang', 13, 1702379),
(16, 'Salatiga', 13, 198971);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment