如何使用insert
将数据select query
INSERT INTO PermissionRole(code,isValid,longValue,shortValue),
INSERT INTO PermissionRole_authorisedFunctions
VALUES(LAST_INSERT_ID(),brfm.authorisedFunctionCode)
SELECT urt.code, urt.isValid, urt.longValue, urt.shortValue, brfm.authorisedFunctionCode
FROM Ref_UserRoleType urt
INNER JOIN ref_businessrolefunctionmap brfm
ON urt.code=brfm.businessRoleCode;
成多个表?
version: '2'
services:
myapp-web-backend:
image: privaterepo/myapp-web-backend--ssl:1.0.0
environment:
SPRING_PROFILES_ACTIVE: ${spring_profile}
DB_IP: ${db_ip}
DB_PORT: ${db_port}
DB_NAME: dash
DB_USER: ${db_user}
DB_PASS: ${db_pass}
myapp_NAS: 'P:'
PROXY_HOST: proxy
PROXY_PORT: 8080
PROXY_USER: svc-app
PROXY_PASS: password
ports:
- "8081:8080/tcp"
- "9999:9999/tcp"
stdin_open: tr