반응형
CREATE VIEW `DB명`.`생성할 view 명` AS
select `column01`,`column02`,`column05` from `tablea명`
으로 작성할 경우
select * from `tablea명`
결과
|
column01 |
column02 |
column03 |
column04 |
column05 |
|
1 |
11 |
1111 |
11111 |
111 |
|
2 |
22 |
2222 |
22222 |
222 |
select * from 생성한 `view명`
결과
|
column01 |
column02 |
column05 |
|
1 |
11 |
111 |
|
2 |
22 |
222 |
반응형
'[Program] > [PHP]' 카테고리의 다른 글
| curl session 공유하기.. (0) | 2015.05.07 |
|---|---|
| <!--[if !supportEmptyParas]--> <!--[endif]--> 삭제 (0) | 2015.03.03 |
| (mysql)특정 View 테이블만 접근 가능한 유져 만들기. (0) | 2015.02.11 |
| mysql if문 사용하기. (0) | 2014.09.10 |
| php 문자열 자르기 소스 (0) | 2014.08.25 |