Categories
MySQL

Compare two tables in MySQL

When migrate data you need to compare two tables and identify the unmatched results records. Suppose you have two tables table1 and table2 with same columns and values. If any one table has any extra row then using below query you can get the unmatched results. Compare two tables: SELECT id, name FROM ( SELECT […]

Categories
MySQL

Manage Triggers in MySQL

Here you will learn how to manage triggers like modifying, removing etc. To display the trigger use following sql: SELECT * FROM Information_Schema.Triggers WHERE Trigger_schema = ‘database_name’ AND Trigger_name = ‘trigger_name’; To view trigger: SHOW TRIGGERS; To drop a trigger: DROP TRIGGER tbl_name.trigger_name

Categories
Html5

HTML5 – Tips & Tricks

HTML5 has a lot of new tools to build website for better user experience and it is strong and powerful version of HTML. For Mobile phone applications it is used to a very great extent. Here are some tips and tricks for HTML5 HTML <!DOCTYPE> Declaration:The <!DOCTYPE> declaration is the first tag in your HTML […]

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 […]