Fillin (hover over or click) the blanks to learn about MySQL, or create your own lines

+ To find structure of a MySQL table use the 'describe table_name' command
+ To move a column in MySQL: ALTER TABLE `tablename` MODIFY column_to_move column_to_move_type AFTER column_to_place_after
+ indexes cause insert operations take a longer time
+ GROUP_CONCAT() function is used to concatenate column values into a single string.
+ Ordinary conditional statements can be used inside ordinary queries? true
+ To avoid the overhead of sorting that GROUP BY produces, add ORDER BY NULL
+ To return a string result with the concatenated non-NULL values from a group use the GROUP_CONCAT MySQL function.
+ The 'cardinality' of a table field is the number of unique values for that field
+ Keep database connection file outside of the web root
+ mysql_free_result() only needs to be called if you are concerned about how much memory is being used for queries that return large result sets.
+ MySQL 5 brought stored procedures, triggers, and views.
+ For concurrency control, MyISAM uses table-level locking with concurrent inserts.
+ In MySQL, if transaction support is needed, use InnoDB, but if full text searching is needed use MyISAM
+ Extremely high concurrency is possible when using InnoDB, with the following trade-off: InnoDB requires about three times as much disk space compared to MyISAM, and for optimal performance, lots of RAM is required for the InnoDB buffer pool.
+ The MySQL SELECT INTO statement selects data from one table and inserts it into a different table.
+ Date arithmetic can be performed using INTERVAL together with the + or - operator
+ If MySQL autocommit mode is disabled, the session always has a transaction open.
+ The major deficiency of MyISAM is the absence of transactions support
+ To perform mathematical operations on null values use coalesce(null, 0)
+ MySQL only supports the EXPLAIN statement for SELECT queries
+ SQL injection is when user input causes the execution of unwanted SQL on the database
+ A TIMESTAMP column is simply a DATETIME column that automatically updates to the current time every time the contents of that record are altered.
+ Normalization can affect performance negatively
+ The CONCAT_WS MySQL function concatenates with seperator and avoids NULL values
+ A natural join is a special case of the equi-join
+ Consistency means that when a transaction commits or aborts, the database is always left in a consistent state.
+ ACID (Atomicity, Consistency, Isolation, Durability) guarantees database transactions are processed reliably
+ To show the sql statements necessary to duplicate rights for another user use SHOW GRANTS [FOR user]
+ Durability guarantees a pending database changes are tracked so that the server can recover from an abnormal termination.
+ Atomicity means "all or nothing"
+ Isolation keeps transactions separated from each other until they're finished.
+ Consistency guarantees that a transaction never leaves the database in a semi finished state.


A Lefkon Development