04-26-mysql keyword/error prompt keyword

Action keywords:

1.show //View, display

2.use //select(library/table)

3.database/s //libraries/all libraries

4.table/s //table/all tables

5.primary key //Primary key: not repeatable, not nullable

6.unique key //Unique key: not repeatable, can be empty

7.primary key(id,uid) //Joint primary key, two fields form uniqueness

8.foreign key //Foreign key: for example foreign key(id2) references set_test(id)

9.auto_increment //Self-increment (must be the primary key, must be int): auto_increment = xx; auto-increment from xx

10.comment //Comment

11.engine = MyIsam //show create table tablename command to see the type of table. myisam , does not support transactions, InnoDB supports transactions.

12.charset //Character encoding, cmd defaults to gbk, generally uses gbk, and the database is utf8;

13.default //default value

14.delimiter //Set the statement terminator such as delimiter*

 Error message keywords:

1.empty: empty, no (data)

2. doesn't exist: does not exist (library name/table name error)

3.syntax: syntax error, look for near;

4.Subquery returns more than 1 row: Subquery results more than one row (insufficient conditions)

5.ambiguous: ambiguous (multiple table fields are repeated, table name. field name)

6.Invalid: Invalid

Action keywords:

1.show //View, display

2.use //select(library/table)

3.database/s //libraries/all libraries

4.table/s //table/all tables

5.primary key //Primary key: not repeatable, not nullable

6.unique key //Unique key: not repeatable, can be empty

7.primary key(id,uid) //Joint primary key, two fields form uniqueness

8.foreign key //Foreign key: for example foreign key(id2) references set_test(id)

9.auto_increment //Self-increment (must be the primary key, must be int): auto_increment = xx; auto-increment from xx

10.comment //Comment

11.engine = MyIsam //show create table tablename command to see the type of table. myisam , does not support transactions, InnoDB supports transactions.

12.charset //Character encoding, cmd defaults to gbk, generally uses gbk, and the database is utf8;

13.default //default value

14.delimiter //Set the statement terminator such as delimiter*

 Error message keywords:

1.empty: empty, no (data)

2. doesn't exist: does not exist (library name/table name error)

3.syntax: syntax error, look for near;

4.Subquery returns more than 1 row: Subquery results more than one row (insufficient conditions)

5.ambiguous: ambiguous (multiple table fields are repeated, table name. field name)

6.Invalid: Invalid

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324898235&siteId=291194637