Browse Source

sql执行语句,将糖尿病设为慢病

zhoutg 6 years ago
parent
commit
e2ab2605a6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      docs/006.20190304慢病基于icss增量脚本/init_icss_NCD.sql

+ 5 - 0
docs/006.20190304慢病基于icss增量脚本/init_icss_NCD.sql

@@ -113,6 +113,11 @@ CREATE TABLE `icss_dis_type` (
 insert into icss_dis_type(`dis_id`, `type`)
 SELECT id,0 FROM `icss_question_info` where type = 7 and is_deleted = 'N';
 
+-- 将糖尿病设置为慢病
+update icss_dis_type set type = 1 where dis_id = (
+	select id from icss_question_info where tag_name = '糖尿病' and is_deleted = 'N' and type = 7
+);
+
 
 
 -- ----------------------------