oralce中例如下面这个视图: Create or replcae view vw_test as select table1.a,table2.b from table left join table2 where table2.id=table1.id; 查询结果:cloumn table--------------------------------------------------- a table1 b table2
a,b是两个栏位,你如果想查a,b对应的申明,只能查看该视图的语法结构,例如此时: select text from user_views where VIEW_NAME='vw_test'。 这样就能出现select table1.a,table2.b 毕竟select查的的列中数据的,你要查这个列到底是那个表来的,也只有这样了把~~ 期待更好答案~