创建视图样例create or replace view view_name asselect tm.stbid,tm.begintime,tm.endtime,tm.status fr
创建视图样例 create or replace view view_name as select tm.stbid,tm.begintime,tm.endtime,tm.status from tablename1 tm union all select ta.stbid,ta.begintime,ta.endtime,ta.status from tablename2 ta;