From 642242afb0f4c494f55ff14c1f6eb775a6e8d316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Sun, 25 Sep 2022 01:39:19 +0800 Subject: [PATCH] update --- sql/analysis.sql | 9 +++++---- sql/{ => old}/tmp_table.sql | 0 src/{ => old}/db.js | 0 3 files changed, 5 insertions(+), 4 deletions(-) rename sql/{ => old}/tmp_table.sql (100%) rename src/{ => old}/db.js (100%) diff --git a/sql/analysis.sql b/sql/analysis.sql index 08c0527..c0381f8 100644 --- a/sql/analysis.sql +++ b/sql/analysis.sql @@ -1,12 +1,13 @@ SELECT total_count, - distinct_count, - total_count - distinct_count AS repeat_count + chinese_count, + english_count FROM ( SELECT - count(text) AS total_count, - count(DISTINCT text) AS distinct_count + count(id) AS total_count, + count(DISTINCT chinese) AS chinese_count, + count(DISTINCT english) AS english_count FROM `answer` ) as tab \ No newline at end of file diff --git a/sql/tmp_table.sql b/sql/old/tmp_table.sql similarity index 100% rename from sql/tmp_table.sql rename to sql/old/tmp_table.sql diff --git a/src/db.js b/src/old/db.js similarity index 100% rename from src/db.js rename to src/old/db.js