MySQL (ii)

Source: Internet
Author: User
Tags sql injection
Introduction: Database-related operations

1.SQL Statement * * * * (MYSQL (a) already introduced ) Operational database;

2. Operate the database using the functions provided within MySQL ( views, triggers, functions, stored procedures );

First, the view: the frequently used query results, make the view chart preservation convenient reuse;

1. Create a view:

CREATE VIEW Zhanggen as SELECT * from score;

2. View View:

SELECT * from en;

3. Delete View

Drop View en

Second, trigger when to a table do: adding or deleting the operation, you can use the trigger to customize the association behavior;

Three, function four, stored procedure 1. Simple 2. Parameter (in,out,inout) 3. Parameter Out4. Transaction 5. Cursor 6. Dynamic execution of SQL (anti-SQL injection)

MySQL (ii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.