I started to learn about databases today. Because I don't catch a cold with Microsoft, I don't need to use his products. I wanted to install ORACLE, but it was too big, I am afraid that MySQL is a good choice for people like me who like everything
Solution:
Step 1: the database and table created during restoration are in utf8 format (utf8 is recommended, of course, either gbk or gb2312)
Copy codeThe Code is as follows: create database 'shegongku 'default character set utf8
Create table
An error is reported when mysql statements are used today. The statement is as follows:
SQL code
Copy codeThe Code is as follows: SELECT sapcle FROM SellEnterpriseBaseInfor sebie, SellEnterpriseBaseInforVer sebive, sellapplyperpolicangelist sapcle
When creating a temporary table, you can use the temporary keyword. For example:
Copy codeThe Code is as follows: create temporary table tmp_table (name varchar (10) not null, passwd char (6) not null );
OrCopy codeThe Code is as follows: create
Mysql is often used in the development process to export and import Chinese tables. This article will detail how to use it. If you need it, refer
1. Export data for utf8 first:
(1) Export all tables of the source database:
Copy codeThe Code is as
In Windows, you can use Bat batch files to back up MySql. During backup, you can use the copy file mode when the data volume is large, however, this method requires the server to shut down or stop writing commands, which is not very useful. If the
Set MySQL in Linux and allow external machines to access sudo vi/etc/my. cnf
The specific directory depends on the specific situation. If some people are installed in the personal directory, you can find the corresponding directory.
1.
We know that temporary tables have the following features:
1. At the SESSION level, a SESSION is automatically dropped once it is disconnected.
2. It depends on the default engine. If the default engine is INNODB, And you are crazy about using
A problem occurred while using order by today. I found that the previous understanding of ORDER BY is incorrect.
I saw the order by usage on the w3s website and thought it was to sort the selected data in ascending or descending ORDER of the
After mysql is installed, there will be a database named mysql. The table for storing users is user, and the user management of mysql database is centered on this table. Of course there are some tables, such: tables_priv, procs_priv, clumns_priv,
To check whether the event scheduler is currently enabled
Show variables like 'event _ schedount ';
Enable Event ViewerSet global event_scheduler = 1;
Create eventSyntax:Create event [if not exists] event_nameOn schedule schedule[On completion [NOT]
Basic Concepts • Character refers to the smallest semantic symbol in human language. For example, 'A' and 'B;• Given a series of characters, each character is assigned a value, which is used to represent the corresponding character. This value is
Obtain the current date + time (date + time) 1.1 function: now ()
Related functions: current_timestamp (), localtime (), localtimestamp ()
Example:
2. Get the current date)
Function: curdate ()
Related functions: current_date (),
Preparations
1 download apache http://httpd.apache.org/download.cgi#apache24 httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
Openssl indicates that the openssl module is included. You can use openssl to configure an SSL Secure link for Apache.
2
Recently, we have studied the implementation 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 () LIMIT 1.
There are two ways to achieve the
After logging on to mysql by default, you can view the system VARIABLES and their values using the show variables statement.
Mysql> show variables like '% character % ';
(The following is the settings under the CentOS-6.2 (different versions may
Mind Map
The most storage engines used in mysql are innodb and myisam. As the default storage engine of Mysql, myisam is worth learning. The following is my understanding of myisam mentioned in the High-Performance MYSQL. Please give me some
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