Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10740 Articles
AmitDiwan
3K+ Views
The AUTO_INCREMENT attribute is used to generate a unique identify for new rows. If a column is declared as ‘NOT NULL’, it is possible to assign NULL to that column to generate a sequence of numbers.When any value is inserted into an AUTO_INCREMENT column, the column gets set to that ... Read More
AmitDiwan
198 Views
Let us understand how to work with AUTO_INCREMENT columns in MySQL −The AUTO_INCREMENT attribute is used to generate a unique identify for new rows. Let us see how this statement works. Before that, consider the below query −QueryCREATE TABLE tableName ( id MEDIUMINT NOT NULL AUTO_INCREMENT, name CHAR(30) ... Read More
AmitDiwan
499 Views
Let us understand how ATUO_INCREMENT works −The AUTO_INCREMENT attribute is used to generate a unique identify for new rows. Let us see how this statement works. Before that, consider the below query −QueryCREATE TABLE tableName ( id MEDIUMINT NOT NULL AUTO_INCREMENT, name CHAR(30) NOT NULL, PRIMARY KEY ... Read More
AmitDiwan
597 Views
Let us understand how to form the query to find the number of web visits per day, per month, per year, and the total in MySQL:Note: We assume we have created a database named ‘DBNAME’ and a table named ‘tableName’.Let us see the MySQL query which can be used to ... Read More
AmitDiwan
463 Views
Note: We assume we have created a database named ‘DBNAME’ and a table named ‘tableName’.Let us understand how the count of visitors per day per page can be queried using MySQL. This can be done using the bit group function −QuerySELECT DATE(date) Date, page_id, COUNT(*) colName FROM tableName GROUP BY ... Read More
AmitDiwan
597 Views
Let us first see what is Composite Index −A composite index is an index that is used on multiple columns.It is also known as a multiple-column index.MySQL allows the user to create a composite index which can consist of up to 16 columns.The query optimizer uses the composite indexes for ... Read More
AmitDiwan
9K+ Views
A composite index is an index that is used on multiple columns. It is also known as a multiplecolumn index.FeaturesLet us see the features −MySQL allows the user to create a composite index which can consist of up to 16 columns.The query optimizer uses the composite indexes for queries which ... Read More
AmitDiwan
2K+ Views
Let us understand how to search multiple columns in MySQL −Note: We assume we have created a database named ‘DBNAME’ and a table named ‘tableName’.The ‘AND’ and ‘OR’ operators can be used, depending on what the user wants the search to return.Let us see that with the help of an ... Read More
AmitDiwan
198 Views
Let us understand how to search on two keys in MySQLSearching on two keys can be achieved using the ‘OR’ with the help of single key which is well optimized or using ‘AND’ which is well optimized. Let us see how searching on two different keys can be done combining ... Read More
AmitDiwan
378 Views
Let us understand what user variables are and how they can be used in MySQL. We will also see the rules −User variables are written as @var_name. Here, the ‘var_name’ refers to variable name, which consists of alphanumeric characters, ., _, and $.A user variable name can contain other characters ... Read More