The above SQL script creates a table named fa_area with columns id, pid, shortname, name, mergename, level, pinyin, code, zip, first, lng, lat. It also inserts some sample data into the table representing different areas in Taiwan.

The id column is the primary key of the table and is auto-incremented for each new record. The pid column represents the parent ID of the area, which is used to create a hierarchical structure of the areas. The shortname column represents the abbreviated name of the area, while the name column represents the full name of the area. The mergename column represents the full name of the area along with its parent areas. The level column represents the level of the area in the hierarchy (0 for provinces, 1 for cities, 2 for districts, and 3 for counties). The pinyin column represents the Pinyin transcription of the area name. The code column represents the long-distance area code for the area. The zip column represents the postal code for the area. The first column represents the first letter of the area name. The lng and lat columns represent the longitude and latitude coordinates of the area, respectively.

DROP TABLE IF EXISTS fa_area;CREATE TABLE fa_area id int10 NOT NULL AUTO_INCREMENT COMMENT ID pid int10 DEFAULT NULL COMMENT 父id shortname varchar100 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMEN

原文地址: https://www.cveoy.top/t/topic/bJbx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录