还是有很多的不同,转贴如下:http://www.bristle.com/tips/sql.htm#oracle%20tips
table of contents: 【相关文章:XML 属性顺序】
【扩展阅读:CSDN 一路走好 之Wiki与Blog】
oracle tips 【扩展信息:网络实现技术--IBM专有网络SNA/A】
oracle tips sql tips select * and more materialized view pl/sql tips sql navigator tips see also ms sql server tips sql tips dynamic sql in a stored procedure sql enterprise manager tips keyboard shortcuts sql generating sql see also differences between oracle and ms sql server concepts and terminology data types limits operators built-in functions differences in sql syntax differences in sql semantics differences in managing databases differences in managing database objects differences in managing users differences in integration with ms ado, rdo, etc. miscellaneous differences see alsodetails of tips:
sql tips
this section contains tips on standard sql (structured query language) statements in oracle.
select * and more
last updated: 6/6/1999
applies to: oracle 7.3, 8 (and probably earlier versions)to select all columns of a table:
select * from tablehowever, to select all real columns, plus a pseudo-column like "user":
select table.*, user from tablethe following does not work:
select *, user from table--fred
materialized view
last updated: 1/7/2002
applies to: oracle 8+oracle 8i introduced a new feature called a "materialized view". you define it just like any other view, except that you add the keyword materialized:
create materialized view view_namea materialized view is like a combination of a table and a view. like a view, it is defined as a logical view into the data of one or more tables. when you update the tables, subsequent queries of the view see the updated data. however, like a table, its data is stored in the database. also, like a table, it is faster if you define indexes for it.
a regular view is stored as a mapping of data from tables. when you modify the data in the tables, the view is completely ignored. when you access the view, it joins the data currently in the tables, and returns the data you requested. a materialized view is stored as such a mapping along with a copy of the actual data from the tables. when you modify the data in the tables, the view´s copy of the data is also updated. when you access the view, the data is drawn directly from the copy.
thus a materialized view makes table updates a little slower, but makes view queries much faster. it also consumes additional space in the database.
... 下一页