Stored Procedure 6-trigger and Stored Procedure 6
I. triggers
A trigger is a table-related named database object. This object is called when a specific event occurs on the table. It is a special stored procedure related to table events. Its
Objective
During the development of the database, the complex business logic and the operation of the database are often encountered, and the stored procedures are used to encapsulate the database operations. If the project has more stored
--Using regular expressions--^ Start,. Any characterSELECT name, continent, Population from country WHERE Name REGEXP ' ^. [a-e].* ' ORDER by Name;--$ endSELECT name, continent, Population from country WHERE name REGEXP '. *g$ ' ORDER by Name;SELECT
CREATE PROCEDURE
Creates a stored procedure that is a collection of Transact-SQL statements that can be saved to accept and return user-supplied parameters.
You can create a procedure for permanent use, or for temporary use in a session (local
First, connect MySQL
Format: mysql-h host address-u user name-P user Password
1, connected to the MySQL on the computer.
First open the DOS window, and then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the
1, connect MySQL
Format: mysql-h host address-u user name-P user Password
1, connected to the MySQL on the computer.
First open the DOS window, and then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the
How to determine the presence of a table or database in SQL Server, but in actual use, you need to determine the status State bit:Some of these state bits can be set by the user using sp_dboption (read only, dbo use only, single user, and so on):
1
Table partitioning test usage, mainly from other blog posts and mysql5.1 reference manuals
MySQL beta version: mysql5.5.28
MySQL Physical storage file (with MySQL configuration datadir decision storage path) format Introduction
Database Engine to
mysql command Daquan 1, connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
Format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to lose the password.
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
Format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to lose the password.
1. Connect MySQLFormat: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to lose
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
Today just in preparation for the company's interview, so the MySQL knowledge points to review, to find a good blog, but also to their own MySQL to do an accumulation.Please refer to the original text: http://www.cnblogs.com/zhangzhu/archive/2013/07/
SQL server to determine whether a table or temporary table exists, SQL server
1. Determine whether a data table exists
Method 1:
Use yourdb; goif object_id (N 'tablename', N 'U') is not nullprint 'There is 'else' print' doesn't exist'
For
1. Connect to Mysql
Command: mysql-u -p
1. Connect to MYSQL on the local machine.
First, open the DOS window, enter the mysql \ bin directory, and then enter the mysql-u User Name)-p password). Press enter and you will be prompted to enter the
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.