We know that,MySQLDatabases are often combined with PHP to develop powerful applications. So for those who are new to PHP programming, it is necessary to understand some simple MySQL database operations. In this article, we useAlter tableStatement
SQL ALTER TABLE statements are important in PHP operations and will be explained in this article.
SQL ALTER TABLE Syntax
To add columns to a table, use the following syntax:
ALTER TABLE table_nameADD column_name datatype
To delete a column from a
The difference between ALTER INDEX COALESCE and ALTER INDEX rebuild:Alter index COALESCE is the leaf block that merges the same branch.and ALTER index rebuild is to re-establish a indexes, generally need twice times the size of the index space . and
To learn how to use MySQL databases, you must first understand the usage of various statements. The following describes how to use MySQL alter statements. If you are not familiar with MySQL alter statements, I believe that you can have a clear
MySQL Tutorial PHP tutorial dynamically add Column ALTER table to tableAdd the MySQL statement of the column asALTER TABLE tablename ADD COLUMN columnName varchar () NOT NULL*/Database Tutorial Connection method$db = ' 111cnNet ';$conn =
PHP Function Index 967 functions
A total of 967 functions
Abs: Get absolute value.
Acos: Gets the inverse cosine value.
Ada_afetch: Gets the return column of the database.
Ada_autocommit: Switch automatic change function.
Ada_close: Close Adabas D
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
Reference | Reference Manual | Chinese 4 establish InnoDB table
Suppose you have run the MySQL client program as a MySQL test command. In order to create a table in InnoDB format you must specify TYPE = InnoDB in the SQL command:
CREATE TABLE
--Create a database
Create DATABASE School
--Open Database
Use School
--Create a table
CREATE TABLE Student
(
ID int,
Name varchar (20),
Sex char (2),
Age int,
Date datetime,
Info text,
Bak varchar (500)
)
--View table structure
EXEC
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.