A bulk insert in MySQL is when you need to insert a lot of records in a table. You may need to do it to quickly create data for testing.
To calculate age from date you can use the following MySQL query. This is useful to find out recency of activity. Just replace with your column names.
Calculating difference between two dates in MySQL is really easy. Here’s how you can do it. Let’s say dt1 and dt2 are 2 columns in table table_name.
MySQL IN clause can be used instead of using OR operator with Where clause. It can be used when where clause is applied for multiple values for same column in an SQL query.
The basic use of MySQL IN statement deals with one column being compared to multiple values. There are also couple of advanced uses which make interesting use cases.
MySQL database location on your hard disk in the following ways: MySQL database location in Windows 1) Locate the my.ini file, which store in the MySQL
MySQL character encoding problem is where your MySQL database causes Unicode characters (like å, ä and ö) to be displayed wrongly. You can set it to UTF8.
Sometimes you may need to keep track of largest table in MySQL database to optimize it. Here’s an SQL query to find the largest table in MySQL database
Here’s how to get MySQL database size for all or a specific database. You can use the following SQL query to get it.
Get MySQL table size for a table in your database with the following SQL query. MySQL table size is the sum of data length and index length.