MySQL----view & transaction

This introduces the MySQL view (view):

  What is SQL view: a View is a view 虚拟的表格, it is drawn from a variety of data from each real table.

  The process of creating the view (view) statements: the Create View View Name as select ... from ... where ...

  Example: Create view shows all the information male students: the Create View stu_man the WHERE AS the SELECT * from Student SSEx = 'M';

 

  A data table can be created the n-th view;

  Delete view: drop view view name

                

This introduces the MySQL transaction (transaction):

  What is SQL transaction: A transaction represents a Transactin 操作序列that linkage are several statements.

  The process of creating a transaction (transaction) statement: Transaction Start the SELECT ... from ...; Update ... the SET ...; INSERT INTO ...; the commit ... Start Transaction can be used instead begin

  

                                                  to be continued...

                  

Guess you like

Origin www.cnblogs.com/xiaolizikj/p/11325092.html