We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
本帖仅供参考
` CREATE TABLE "region" ( "code" integer NOT NULL, "name" text NOT NULL, "parentCode" integer NOT NULL, "level" integer NOT NULL, CONSTRAINT "pk_code" PRIMARY KEY ("code") );
INSERT INTO region SELECT code,name,0,1 FROM province;
INSERT INTO region SELECT code,name,provinceCode,2 FROM city;
INSERT INTO region SELECT code,name,cityCode,3 FROM area;
INSERT INTO region SELECT code,name, areaCode,4 FROM street;
INSERT INTO region SELECT code,name,streetCode,5 FROM village;
`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
本帖仅供参考
`
CREATE TABLE "region" (
"code" integer NOT NULL,
"name" text NOT NULL,
"parentCode" integer NOT NULL,
"level" integer NOT NULL,
CONSTRAINT "pk_code" PRIMARY KEY ("code")
);
INSERT INTO region
SELECT code,name,0,1
FROM province;
INSERT INTO region
SELECT code,name,provinceCode,2
FROM city;
INSERT INTO region
SELECT code,name,cityCode,3
FROM area;
INSERT INTO region
SELECT code,name, areaCode,4
FROM street;
INSERT INTO region
SELECT code,name,streetCode,5
FROM village;
`
The text was updated successfully, but these errors were encountered: