The following list describes some of the important characteristics of MySQL:
FLOAT
, DOUBLE
, CHAR
, VARCHAR
, TEXT
, BLOB
, DATE
, TIME
, DATETIME
, TIMESTAMP
, YEAR
, SET
and ENUM
types. See section 7.3 Column types. SELECT
and WHERE
parts of queries. Example: mysql> SELECT CONCAT(first_name, " ", last_name) FROM tbl_name WHERE income/dependents > 10000 AND age > 30;
GROUP BY
and ORDER BY
clauses. Support for group functions (COUNT()
, COUNT(DISTINCT)
, AVG()
, STD()
, SUM()
, MAX()
and MIN()
). LEFT OUTER JOIN
with ANSI SQL and ODBC syntax. CHAR
or VARCHAR
field. INSERT
to insert a subset of a table's columns; those columns that are not explicitly given values are set to their default values. libtool
for portability. purify
). myisamchk
, a very fast utility for table checking, optimization and repair. See section 15 Maintaining a MySQL installation. DELETE
, INSERT
, REPLACE
, and UPDATE
return how many rows were changed (affected). It is possible to return the number of rows matched instead by setting a flag when connecting to the server. ABS
is a valid column name. The only restriction is that for a function call, no spaces are allowed between the function name and the `(' that follows it. See section 7.34 Is MySQL picky about reserved words?. --help
or -?
options to obtain online assistance. SHOW
command can be used to retrieve information about databases, tables and indexes. The EXPLAIN
command can be used to determine how the optimizer resolves a query.