2010-03-05 9 views

답변

4

, 당신은 하위 쿼리 사용할 수 있습니다

select inner.*, times_two * 2 from 
(select mycol * 2 as times_two from table) sub 

을 또는 계산 재 작성 :

select mycol * 2, mycol * 2 * 2 from table 
-1

사용 formla가 얼마나 무거운에 따라이 문

 
CREATE VIEW view_name as SELECT column_name*2 as new_col1 , column_name*4 as new_col2 from table_name ; 

select * from view_name ; 

If you want use this view column values. use following things 

create view new_viwe as select new_col1*2 as final_column from view_name ; 

select * from new_view ;