The version is: 5.0.22-community-nt.
1. Create a new temporary table for table folder folder_tmp
CREATE TABLE Folder_tmp as SELECT * from folder group by ServerIP, UserId, name, path;
Here, following the ServerIP, UserId, name, and path groupings,
In MySQL database operations, we often write some SQL statements to achieve the desired functionality. But for the novice MySQL database, this seems to have a certain degree of difficulty. In this article we have summed up six of the more useful SQL
MySQL Database Import Export:
. sql file Import MySQL:
If the database file you want to import is located at: D:test.sql.
1, enter the MySQL command line window
2, if the Test.sql file contains a create databasexxx; Statement, the command is as
The following is a detailed analysis of the difference between the order by and group by in MySQL, the need for friends can come to the reference
ORDER By is understood in English as the sort of row, and the default is ascending. The ordered by
MySQL Classic questions:
(ERROR 1366 (HY000): Incorrect string value: ' Xd5xd4 ' for column ' name ' at row 1)
There are a lot of online to solve Chinese garbled paste, roughly speaking is to modify%mysql_dir%/my.ini DEFAULT-CHARACTER-SET=GBK or
MySQL Spatial data type explanation
MySQL has a data type that corresponds to the OpenGIS class. Some types can only hold a single geometric value:
· GEOMETRY
· Point
· LINESTRING
· POLYGON
Geometry can save any type of geometric value. Other
MySQL database provides two types of indexes, if not set correctly, the efficiency of the index will be greatly compromised but the problem is completely unknown.
Copy Code code as follows:
CREATE TABLE Test (
ID INT not NULL,
last_name CHAR
Convert () provides a way to convert data between different character sets. The syntax is:
CONVERT (expr USING transcoding_name)
In MySQL, the conversion code name is the same as the corresponding character set name.
Example:
SELECT CONVERT
MySQL regular backup is an important work, but manual operation is too cumbersome, also difficult to avoid omissions, use the following methods to allow the system to back up data on a regular basis.
1. Create a backup folder
#cd/www
#makedir
Linux under C++/C connection MySQL database (i)
First, the preparation before the connection
Raw Material: Ubuntu12.04lts
(MySQL5.5 or more advanced versions, new packages, gcc/g++ or codeblosks compilers are already installed)
After installing
MySQL forgot password processing method solution:
1. Stop the MySQL service. Open a command line window to stop the MySQL service: Net stop MySQL
2. Start MySQL, general to the installation path of MySQL, find Mysqld-nt.exe
Execution:
such as table: User
Field: UserID name PW
The Useid of the user table is not self increasing. We changed the UserID to a self increase.
Execute the following statement to increase the UserID by 1 each time.
Statement: ALTER TABLE ' user ' change
of bars for the total record //page is a user-submitted parameter that controls paging, the allowable values are positive integers, and negative integers int I=COUNT/15//Total page, 15 records per page int J=I/10//Total Large page, No 10
Hardware environment: PIII550,128M,15.2GSoftware Environment: Win98+apache+php4+mysql
Programme I:1. For the first query, use the Select COUNT (1) from tab where condition to obtain the number of records that meet the criteria $rows2. Through the
PHP reads the MySQL content into a two-dimensional array and outputs it in the specified column
?$host = "localhost"; Host Name$user = "root"; MySQL User name$password = ""; MySQL Password$database = "Doc"; MySQL database name$tables = "MClass";
mysql| Program | link | data ' ASP link MySQL program
' Need to install MYSQLODBC driver download address: http://www.mysql.com/downloads/api-myodbc-2.50.html
' E-mail:kaxue@hotmail.com qq:484110 HOMEPAGE:www.Flyday.net
' Finishing Time: Thursday,
Select distinct can remove duplicate records.
Disctinct ignores duplicate records, but it ignores identical duplicate records, not records that are duplicated in one of these fields, or where a distinct queries a field so that multiple fields are
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.