The skillful use of regular expressions
Second, skillfully use RAND () to extract random rows
Using the random number function of rand (), combined with the ORDER BY clause, the function of randomly extracting some rows is done.
Third, using GROUP BY's with ROLLUP clause to do statistics
NOTE: The ROLLUP clause is mutually exclusive to the ORDER BY clause.
Four, database name, table name capitalization problem
The case sensitivity of the operating system determines the case sensitivity of the database name and table name. Windows is not case sensitive.
columns, indexes, stored word programs, and triggers are not case sensitive on any platform.
How to save and use the table name and database name on the hard disk in MySQL is determined by the LOWER_CASE_TABLES_NAME system variable, which can be set at startup.
The foreign key is valid only for the data table of the InnoDB engine.
MySQL Common SQL tips and FAQs