In the reconstruction of the site, the data structure is usually modified, so add, delete, add the MySQL table field is unavoidable, and sometimes for convenience, but also increase the modification of the table or field comments, the same field
In the reconstruction of the site, the data structure is usually modified, so add, delete, add the MySQL table field is unavoidable, and sometimes for convenience, but also increase the modification of the table or field comments, the same field
I. Commonly Used MySQL command line commands1. Start the MySQL service. Net start MySQL
Stop MySQL service. net stop MySQL
2. netstat-Na | findstr 3306: Check the listening port. findstr is used to check whether the following port exists.
3. log on
Description of SQL Server Field Types
The following describes the Field Types of SQL Server 7.0 and later versions. For more information about the field types of SQL Server 6.5, see the description provided by SQL Server.
Bit: an integer of 0 or
Create a blank table: sql= "CREATE table [table name]"Create a table with fields: sql= "CREATE table [table name] ([field name 1] Memo not NULL, [field Name 2] Memo, [Field name 3] COUNTER not NULL, [field name 4] DATETIME, [field name 5] TEXT (200),
Text nvarchar (N)
Note ntext
Number (long integer) int
Integer smallint
Number (single precision) Real
Number (Double Precision) float
Number (byte) tinyint
Currency Money
Date smalldatetime
Boolean
Appendix: the script for converting to SQL.
Alter
How to Learn the data types and table field constraint types supported by MySQL,
MySQL Data (field) TypeWhen creating a table, you must clearly define the data type corresponding to the field. MySQL data types include numeric, string (text), time
SQL obtains all user names, database names, all table names, all field names, and field types. 2009 - 03 - 14 10 : 48 1 . Get all user names: Select Name From Sysusers Where Status = ' 2 ' And Islogin = ' 1 ' Islogin = ' 1 '
Basis:The difference between char, varchar, text, and nchar, nvarchar, ntext1, CHAR. Char is convenient to store the fixed-length data, the index on the Char field is more efficient, such as the definition of char (10), then regardless of whether
MySQL data (field) typewhen you create a table, you explicitly define the data type of the field. MySQL's main data types are numeric, string (text), date, and other types.Numeric typeNumeric type description:
Supplementary notesIn the Int
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.