PDA

View Full Version : فرق Database , Schema , view



cyber_17
دوشنبه 29 دی 1393, 23:55 عصر
سلام
من میخوام تفاوت سه مفهوم دید، شما و دیتابیس رو بدونم. به صورت خلاصه خیلی ممنون میشم اگه کسی توضیح بده. آیا دیتا بیس مفهوم کلی تر شما و شما مفهوم کلی تره دیده؟ مثلا شمای مفهومی با دید مفهومی چه فرقی داره؟ ..

sajadsobh
سه شنبه 30 دی 1393, 16:03 عصر
A database is the main container, it contains the data and log files, and all the schemas within it. You always back up a database, it is a discrete unit on its own.

Schemas are like folders within a database, and are mainly used to group logical objects together, which leads to ease of setting permissions by schema.

In SQL, a view is a virtual table based on the result-set of an SQL statement.
A view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tables in the database.
You can add SQL functions, WHERE, and JOIN statements to a view and present the data as if the data were coming from one single table.




http://stackoverflow.com/questions/5323740/difference-between-database-and-schema
http://www.w3schools.com/sql/sql_view.asp