Categories
MySQL

MySQL ORDER BY Clause

Using MySQL ORDER BY Clause you can sort table columns by ascending or descending. Suppose we have a table ‘tbl’ with column ‘name’ and a row like below values: 1 1B 10 2 10C 2A 10Z So, when you sort by name: SELECT name FROM tbl ORDER BY name; So, when you sort by that […]

Categories
Business Feature Story

Things You Should Know Before Starting Your First Brand Identity Project

Is it accurate to say that you are in all-out startup mode? Perhaps a little overpowered by all that you have to do to before your brand welcomes the world? Is “business branding” one thing on your agenda that you aren’t sure how to handle? Distinctive brand identity captivates, resonates, and defines, forging lasting connections […]

Categories
Html5

Tips for fast loading HTML5 videos

HTML5 videos is becoming more popular with day by day. So for displaying the video in website it should be well-designed and load quickly. The complexity of the HTML5 video arises not from the syntax, but from the browser support and encoding video also. To build a successful HTML5 site with a video display, you’ll […]

Categories
MySQL

MySQL Event

In MySQL you can add an event to a database that runs in a interval to automate database tasks. You can wait for intervals and check the table to see the changes. By default, the event scheduler thread is not enabled in the database. You need to enable this: SET GLOBAL event_scheduler = ON; Or […]

Categories
MySQL

Store IP Addresses as UNSIGNED INT

Want to store IP addresses in database and still using VARCHAR(15)? You can actually store IP addresses as integer values because using INT you go down to 4 bytes of space and have a fixed size field. As the range of a IP Addresses are 32 bit unsigned integer you can use your column as […]

Categories
MySQL

MySQL export table to CSV

MySQL provides an easy way to export table result set into a CSV file. Suppose we have a query like: SELECT name, email, age FROM users WHERE status = ‘Active’; So if we need to export this data into a csv file then using below query we can do: SELECT name, email, age FROM users […]

Categories
MySQL

Use NOT NULL if required

First of all think whether you require a NULL field or not.If having an empty string value can make any sense then use it otherwise use NULL value for a specific reason. So, Put NOT NULL if required. NULL columns require additional space in the row and add complexity to your statement. Avoid it for […]

Categories
Miscellaneous

Get your best selling super Mario costumes before they go out of stock

Pay homage to the pioneering characters of the video game entertainment industry. Before you went on to play all these sophisticated video games with a wide range of funny characters, you began with the Super Mario franchises. We are all familiar to the very popular games of our first video game consoles. With a vintage […]

Categories
MySQL

PROCEDURE ANALYSE()

If you want to analyze the columns structures of a MySQL table and want to view the actual data in your table with certain suggestion then you can get help from PROCEDURE ANALYSE(). For example, if any data present in your table and plays a big role in any decision making then this is very […]

Categories
MySQL

Search with Regular Expression in MySQL

Based on patterns regular expression is a powerful tool which gives you a flexible way to identify strings like email, IP address, phone number etc. Use Regular Expression in Mysql: For example, you want to find a name which starts with character A, B and C. SELECT name FROM users WHERE name REGEXP ‘^(A|B|C)’; Must […]