idnameparentId查询列表 查询每行的直接子层数SELECT id, name, parentId, countT.countFROM table1 pLEFT JOIN ( SELECT parentIdas pid, count(*) count FROM table1 GROUP BY pid) countT ON p.id = countT.pid
SELECT p.strOrganizationGuid, p.strOrganizationName, p.strOrganizationTypeName, parent.strOrganizationName AS parentName, p.strParentId, countT.count AS countSon, p.strSecretaryName, p.strContactsName, p.strContactsCellphone, bu.STR_LAT AS strLat
人员表:idnameage1赵202钱213孙214李225周25人员拥有汽车表:idcar_nameperson_id0car2-b21car1-a12car1-b13car2-a24car3-a3SELECT p.*,GROUP_CONCAT(c.car_name ) as carsFROM person p LEFT JOIN car cON p.
docker hub官网https://hub.docker.com/安装之前确认环境无docker程序如果不确定可先执行卸载官网的安装说明地址:https://docs.docker.com/官网的获取地址:https://docs.docker.com/get-docker/安装引导:https://docs.docker.com/engine/install/centos/正式安装操作1.卸载老版本 操作前 切换root 或者获取超级管理员权限 sudo yum remo
docker获取镜像,不要忘记去官网市场https://hub.docker.com/1.下载mysql镜像sudo docker pull mysql 默认下载最新版本sudo docker pull mysql:5.72.检查镜像docker iamges3.docker启动容器sudo docker run -p 3306:3306 --name mysql \-v /mydata/mysql5.7/log:/var/log/mysql \-v /mydata/mysql5.
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号