Use PHP to generate the SQL file and then pour it into MySQL.1. Writing PHP codePHPSet_time_limit(0);Ini_set("Memory_limit", "256M");$pre= "INSERT into ' article ' (' CID ', ' name ', ' post ') VALUES";$sql=$pre;$content= ' '; for($i= 1;$i$i++){ $
When writing fuzzy queries today, when sorting by time and paging, there is an SQL statement in the MyBatis mapping file1 SELECT2 Include refID="Base_column_list"/>3 from USERU4 WHEREU.status!=#{status,jdbctype=VARCHAR}5
MySQL data types include1. Integer type, floating-point type, and fixed-point number type2. Time and Date type3. String type4. Binary type
Integer typeStandard SQL supports integer,smallint these two types of integers, MySQL in addition to
Data manipulationNew data: two different options. 1, plan one, to insert data into the whole table field, do not need to specify a list of fields, the order of the data must appear in accordance with the design of the table in the order in which the
I. Overview 1. Basic ConceptsIn a large database, a table holds tens of thousands of, hundreds of thousands of, or even millions of of the data, and when the tables are connected to other tables, the new number of data is much larger than the
Add a field to a table ALTER TABLE name the type of the Add Field name fieldsExample: ALTER TABLE table1 add transactor varchar (ten) not Null;ALTER TABLE table1 add ID int unsigned not Null auto_increment primary keyHow to add a field after a
Read a blog, feel the work is worth learning, the original text as follows:Accident descriptionIn a project, on-line a new function, a continuous customer service to our response, there are users of individual props up to 4.2 billion, but there has
Relational database concepts:1. What is a relational database? Relationship Type database: A database built on a relational model (mathematical model)Relational model: A model that is so-called based on relationships.The relational model consists
Operation Steps:First, install MySQL database1. Download the Mysql-5.6.17-winx64.zip file.2, extract to the specified directory, this example is D:\mysql-5.6.17-winx64.3, modify the configuration file, My-default.ini name to: My.ini, the parameters
For example:There is an article table with a Type field, which stores the article type, there are 1 headlines, 2 recommendations, 3 hotspots, 4 graphics ... 1,12,13 and so on.Now there is an article he is a headline, but also hot, or graphic,The
Apache:If using RPM package installation, the installation path should be in the /etc/httpd directoryApache configuration file:/etc/httpd/conf/httpd.confApache module path:/usr/sbin/apachectlWeb directory:/var/www/htmlIf the source code is installed,
Get a test sheet to illustrate the difference.CREATE TABLE ' test ' ( ' id ' int (8) NOT NULL auto_increment, ' name ' varchar (255) is not NULL, ' list ' varchar (255) N OT NULL, PRIMARY KEY (' id ')) INSERT INTO ' Test ' VALUES (1, ' name ', '
Mysql-SQL advanced application, mysql-SQL applicationAdvanced SQL languageTypical operations
Order
- select * from play_list order by createtime;- select * from play_list order by bookedcount desc,createtime asc;The order by statement is used to
Linux Mysql installation and Linux Mysql Installation
1. Preparation
Cmake-3.6.0.tar.gz
Bison-3.0.4.tar.gz
Mysql-5.7.13.tar.gz (http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13.tar.gz)
2. Install cmake and bison
First, check whether cmake
Mysql5.7 installation, mysql5.7.9 installation tutorial
For more information about installing mysql 5.7 in windows
Note:
After installing mysql 5.7, the ROOT account has the default password, which can be found in mysql in windows. under the data
MySQL database update sub-query, mysql database update
For example:?
1234
UPDATE test.tb_vobile aset a.name = '111 'WHEREa.id = (select max(id) id from test.tb_vobile)
Error:?
1234567
[SQL]UPDATE test.tb_vobile aset
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.