Summary of mysql5.0 Stored Procedure 1. create a stored procedure
1. basic syntax:
Create procedure sp_name ()
Begin
.........
End
2. parameter transfer
II. call the stored procedure
1. basic syntax: call sp_name ()
Note: the stored procedure name
MySql common commands summary 1: use the SHOW statement to find out the current database on the server:
Mysql> show databases;
2. create a database named MYSQLDATA
Mysql> create database mysqldata;
3: Select the database you created
Mysql> use
Security issues of Mysql databases explain the security of the database system in many aspects. In many cases, the database server allows the client to connect from the network, so the security of the client connection has an important impact on the
After the MySQL server is installed by default, how to adjust the performance when interviewing MySQL DBA or those who intend to optimize MySQL Performance is my favorite problem: After the MySQL server is installed according to the default settings,
Comparison of some simple commands in Oracle and mysql
Oracle
Mysql
Comparison version
Personal Oracle7 Release 7.3.4.0.0
Mysql 3.23.58-nt
Default installation directory
C: ORAWIN95
F: MySQL
MySQL may use the same character to occupy different spaces in different character sets.
In the default latin1 character set, Chinese characters occupy two bytes, and English occupies one byte. In the gb2312 and UTF-8 character sets, English also
MySQLOrderBy usage first creates the mysql_order_by_test data table according to the following table structure. we will use instance to tell you the usage of MySQL order.
Order by uid ASC
Query data in the forward order of uid, that is, sort data
Monty says MySQL optimization (7), transaction example
How to process transactions in the MyIASM table:
Mysql> lock tables trans READ, customer WRITE;
Mysql> select sum (value) from trans where customer_id = some_id;
Mysql> update customer set
Monty said MySQL optimization (IV) 16. how to store data in MySQL
The database is stored in a directory.
Tables are stored as files.
Columns are stored in files in a variable-length or fixed-length format. For BDB tables, data is stored as
MySQLOrderBy index optimization in some cases, MySQL can directly use indexes to satisfy an order by or group by clause without additional sorting. Although order by does not match the ORDER of the index, the index can still be used, as long as the
MySQLOrderBy syntax MySQL Order By keyword is used to classify data in records.
MySQL Order By Keyword classification
Order by keyword is used to classify the data in the record.
MySQL Order By syntax
SELECT column_name (s)FROM table_nameOrder by
MySQLOrderByRand () efficiency recently, due to the need to study the implementation method of MYSQL Random extraction. For example, to randomly extract a record FROM the tablename table, the general syntax is: SELECT * FROM tablename order by rand (
There are two ways to quickly create empty tables in MySQL:
1. create table t_name select...
2. create table t_name like...
First, some definitions of the original table will be removed, and the engine is the system default engine.
This is the case
To solve the problem that MySQL 5.0 cannot use auto-increment fields: MySQL cannot use auto-increment fields.
Specific reasons:
The cause is that several SQL _modes are added to The Server SQL Mode in MySQL 5.0.2, and. two types of SQL-mode are
Monty said MySQL optimization (III) 11. maintenance
If possible, run OPTIMIZE table occasionally, which is very important for changing the length of rows in a large number of updates.
Occasionally, use myisamchk-a to update the key code
A script for detecting MySQL status:
First, check whether the mysql Port exists normally. if the port does not exist, start the mysql service. of course, the script to be started is located in a different path according to your installation path.
MySQL single row sub-selection remote denial of service vulnerability affected system:
MySQL AB MySQL
Unaffected system:
MySQL AB MySQL 5.0.37
Description:
Bugtraq id: 22900
MySQL is a widely used open-source relational database system with
Where is the temporary file stored in the MySQL database? MySQL uses the value of the environmental variable TMPDIR as the path name of the directory for saving the temporary file. If TMPDIR is not set, MySQL uses the default value of the system,
The group_concat function in MySQL This article introduces how to use the group_concat function in MySQL through examples, such as select group_concat (name ).
Group_concat function in MySQL
The complete syntax is as follows:
Group_concat ([DISTINCT]
MySQL sensitive data security protection six major measures if your current database is MySQL, there are many simple ways to help you protect system security, and significantly reduce the risk of unauthorized access to your sensitive data.
The most
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