BIG
Sample Code : ALTER VIEW
# ==============================================================
ALTER VIEW employee_info AS
SELECT employee_id, first_name, last_name, salary, department
FROM employees
WHERE department = 'IT';
# ==============================================================
ALTER VIEW employee_info AS
SELECT e.employee_id, e.first_name, e.last_name, e.salary, d.department_name
FROM employees e
JOIN departments d
ON e.department_id = d.department_id
WHERE e.department = 'IT';
LIST
'!!...MySQL&MariaDB' 카테고리의 다른 글
[MariaDB] 데이터 저장 경로 ( Datadir Path ) 변경 하기 (0) | 2023.01.10 |
---|---|
[MariaDB] Sample - DROP VIEW (0) | 2022.12.23 |
[MariaDB] Sample - CREATE VIEW (0) | 2022.12.23 |
[MariaDB] 외래 키 설정 테이블 truncate 실행하기 (0) | 2022.12.02 |
[MySQL] CASE WHEN SAMPLE CODE (0) | 2022.09.17 |