일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- ELASTIC
- license delete
- API
- springboot
- flask
- Test
- token filter test
- Elasticsearch
- 차트
- Mac
- 900gle
- sort
- matplotlib
- query
- high level client
- zip 파일 암호화
- License
- zip 암호화
- Kafka
- aggs
- MySQL
- 파이썬
- analyzer test
- Java
- docker
- aggregation
- plugin
- licence delete curl
- Python
- TensorFlow
Archives
- Today
- Total
개발잡부
[Mysql] View 본문
반응형
CREATE
ALGORITHM = UNDEFINED
DEFINER = `master`@`%`
SQL SECURITY DEFINER
VIEW `vw_ep_schedule_summary_info` AS
SELECT
`a`.`pipe_id` AS `pipe_id`,
`a`.`summary_url` AS `summary_url`,
`a`.`mall_id` AS `mall_id`,
`b`.`billing_type` AS `billing_type`,
`b`.`mall_name` AS `mall_name`
FROM
(`mcps_interface_dev`.`ps_pipe_if` `a`
JOIN `mcps_interface_dev`.`ps_mall_if` `b` ON ((`b`.`mall_id` = `a`.`mall_id`)))
WHERE
((`b`.`mall_status` = 1)
AND (`a`.`status` = 'Y')
AND (`a`.`schedule_summary_hour` & POW(2,
IF((CAST(LEFT(CURTIME(), 2) AS UNSIGNED) = 0),
24,
LEFT(CURTIME(), 2))))
AND (`a`.`schedule_summary_min` = CAST(SUBSTR(CURTIME(), 4, 2) AS UNSIGNED)))
반응형
'Database' 카테고리의 다른 글
[mysql] left join 안에서 group_concat (0) | 2023.03.14 |
---|---|
[mysql] PRIMARY KEY, UNIQUE KEY (0) | 2022.04.23 |
[Mysql] Procedure (0) | 2022.04.01 |
[MySql] Event Scheduler (0) | 2022.04.01 |
[MySql] Union Query (0) | 2022.03.15 |
Comments