作者: shaoliang 2020-05-31 10:00   访问数:1029
安装 phpstudy for linux
安装php7 mysql5 phpmyadmin5
通过phpmyadmin导入excel(需要转化为cvs格式)
导入后运行代码
DELETE FROM `pathology` WHERE `病人编号`=''
删除为空的 病理,如果有,则默认全部为这个人的病理结果,导致查询失败
SELECT * FROM `gastroscope` LEFT JOIN pathology ON gastroscope.病人号=pathology.病人编号 WHERE gastroscope.送病理='是'
点击浏览页的最下面的导出
连城了1个
常用语句如下
DELETE FROM `pathology` WHERE `病人编号`='' SELECT * FROM `gastroscope` INNER JOIN pathology ON gastroscope.病人号=pathology.病人编号 SELECT * FROM `gastroscope` INNER JOIN pathology ON gastroscope.病人号=pathology.病人编号 WHERE gastroscope.送病理='是' SELECT * FROM `gastroscope` LEFT JOIN pathology ON gastroscope.病人号=pathology.病人编号 WHERE gastroscope.送病理='是'