From de49e595db7ef3f1f38a32c3556de66b1eaebedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E9=95=BF=E5=BE=81?= Date: Thu, 5 Sep 2024 16:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20sql/split.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/{split.sql => split.md} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename sql/{split.sql => split.md} (81%) diff --git a/sql/split.sql b/sql/split.md similarity index 81% rename from sql/split.sql rename to sql/split.md index ad7291d..b11809d 100644 --- a/sql/split.sql +++ b/sql/split.md @@ -1,5 +1,6 @@ ---查询JK_CRB_ICD10表,将icd10列按照、分割并将name和icd10联合组成新行,插入JK_CRB_ICD10_tmp表。 -~~~sql +查询JK_CRB_ICD10表,将icd10列按照、分割并将name和icd10联合组成新行,插入JK_CRB_ICD10_tmp表。 + +```sql insert into JK_CRB_ICD10_tmp select * from ( SELECT name, @@ -14,4 +15,4 @@ select * from ( AND LEVEL <= LENGTH(t.string_to_split) - LENGTH(REPLACE(t.string_to_split, '、', '')) + 1 ) ina where ina.icd10 is not null; -~~~ \ No newline at end of file +``` \ No newline at end of file