MySQL notes, mysqlModify Field type and length
Description: alter table name modify column field name type;Example: alter table player modify column name varchar (50 );Note:
Exercise caution when modifying the type, which may cause errors in the
Environment: MySQL Sever 5.1 + MySQL command line tool
Problem: the current time of the MySQL datetime data type is set to the default value.
Solution:
Method 1:
Because the default value of the current MySQL field does not support functions, it is
Detailed description of how MySQL queries Time Zone strings with uppercase and lowercase letters, mysql Case
If you insert two rows of values 'A' and 'A' in A column with a unique constraint on mysql, Mysql considers it to be the same, but it does
The auto-increment auto_increment function in mysql is believed to have been used by every phper and knows how to set the field to an auto-increment field. However, not all phper know how to set the starting value and increment value of
10. FileSize Cache IssuesPHP filesize actually cache (and of course, there are many, here only with FileSize example, other functions that will be cached, the official documents prevail)Online code often randomly out of a variety of problems,
Target: Join the Student Entity object to the database1. There are three things to download first: Hibernate,slf4j,mysql.2. Take their package to import the new project, my version here is: Hibernate-release-5.2.10 inside the Lib directory required
MySQL Tutorial save data appears illegal mix of collations (gbk_chinese_ci,implicit)
Other such issues are very simple to deal with, that is, the page submitted data and MySQL field types inconsistent with the image, as long as they are unified.Now
There is a small problem with Chinese characters when using length () in the database to fetch data lengths.
Check to see a webmaster is so understanding the length function
A sentence description: Get string length MySQL built-in function
Length
Int
Integer data (all numbers) from -2^31 (-2,147,483,648) to 2^31–1 (2,147,483,647). The storage size is 4 bytes. The SQL-92 synonym for int is integer
varchar
Length is 0-255 characters OH
What is the meaning of the numbers following the int
Change time zone to East 8, Shanghai
1 cp/usr/share/zoneinfo/asia/shanghai/etc/localtimeModify Host Name
1 #需要改下边这两个文件:
2 vim/etc/hosts
3 Vim/etc/sysconfig/networkView the number of connections per IP for a server to detect DDoS
1 Netstat-ntu |
The problem is that, when building an application directly using the MySQL C API, a connection can only perform a single stored procedure, however, when free uses the connection again, there will be a failure to execute the Qurry, I think, such a
The so-called index is a specific MySQL field for some specific algorithm sorting, such as the two-fork tree algorithm and hashing algorithm, the hash algorithm is established by establishing the eigenvalues, and then based on the characteristics of
Download Kindeditor source files on the Web,
I am using the kindEditor4.1.2 version, after the compression of the list of the following figure:
Step 1, delete the asp,asp.net,examples,php file, and copy the three jar packages under the Lib folder
The recent use of mybatis to do projects when the problem encountered, using MyBatis data for fuzzy query, can only query English, and can not query Chinese, that is: the input parameters for the success of English, Chinese on the search
Recently encountered the MySQL field of the self-enhancement problem, need to temporarily deal with, and then by the way to make up for the missed lesson, so that there is an article.1. What is self-increment?He is a field property that is used to
MySQL Statement Specification: 1. keyword and function name all uppercase2. Database name, table name, field name all lowercase3. The SQL statement must end with a semicolon4. Comment Statement with "#"First, the operation of the database* SHOW
1. Optimize flowchartMySQL optimization (mainly increase the database select query, make the query faster)2. optimizing the MySQL aspectMainly from the following four aspects to optimize MySQL① Storage Tiers: How to select a database engine, select
Python connects MySQL to connector there are many, we choose MYSQLDB
Let Python support MySQLdb module
#pip2.7 Install Mysql-pythonSee if the modules available with python2.7 are present
An index is a specific sort of algorithm for a particular MySQL field, such as a two-tree algorithm and a hashing algorithm. MySQL default is the two fork tree algorithm BTREE.Explain optimized query detectionExplain can help developers analyze SQL
First, login MySQL view with show VARIABLES like ' character% '; The following character set, shown below:+--------------------------+----------------------------+| Variable_name | Value |+--------------------------+----------------------------+|
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.