
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 10744 Articles

AmitDiwan
280 Views
You can use concat(). Let us first create a table −mysql> create table DemoTable ( Value int ); Query OK, 0 rows affected (0.73 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(100); Query OK, 1 row affected (0.18 sec) mysql> insert into DemoTable ... Read More

AmitDiwan
251 Views
For this, you can use LENGTH() along with REPLACE(). Let us first create a table −mysql> create table DemoTable ( Value int ); Query OK, 0 rows affected (1.22 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(10002000); Query OK, 1 row affected (0.09 ... Read More

AmitDiwan
266 Views
For this, you can use IFNULL(). Let us first create a table −mysql> create table DemoTable ( FirstName varchar(100), LastName varchar(100) ); Query OK, 0 rows affected (0.62 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('John', 'Doe'); Query OK, 1 row affected ... Read More

AmitDiwan
165 Views
For this, you can use IFNULL(). Let us first create a table −mysql> create table DemoTable ( Value1 int, Value2 int ); Query OK, 0 rows affected (0.75 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(10, NULL); Query OK, 1 row affected ... Read More

AmitDiwan
254 Views
Following is the declaration for a UNIQUE clause in MySQL −create table yourTableName ( yourColumnName1 dataType, yourColumnName2 dataType, UNIQUE(yourColumnName1), UNIQUE(yourColumnName1) );Let us first create a table −mysql> create table DemoTable ( Value int, Value2 int, UNIQUE(Value), UNIQUE(Value2) ); Query OK, 0 rows ... Read More

AmitDiwan
530 Views
Let us first create a table −mysql> create table DemoTable ( AdmissionDate datetime ); Query OK, 0 rows affected (8.99 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('2010-01-10 12:30:45'); Query OK, 1 row affected (0.14 sec) mysql> insert into DemoTable values('2010-01-10 12:30:45'); Query ... Read More

AmitDiwan
164 Views
The HTML DOM Aside Object represent the element of an HTML document.Create aside object−SyntaxFollowing is the syntax −document.createElement(“ASIDE”);Let us see an example of aside object−Example Live Demo body { text-align: center; background-color: #fff; color: #0197F6; } ... Read More

AmitDiwan
101 Views
The HTML DOM KeyboardEvent altKey property returns whether an ALT key was pressed or not when a key event was triggered in an HTML document.SyntaxFollowing is the syntax −event.altKeyLet us see an example of HTML KeyboardEvent altKey property−Example Live Demo body { color: #000; ... Read More

AmitDiwan
226 Views
The HTML DOM Variable Object represent the element of an HTML document.Create var object−SyntaxFollowing is the syntax −document.createElement(“VAR”);Let us see an example of var object−Example Live Demo body { text-align: center; background-color: #fff; color: #0197F6; } ... Read More

AmitDiwan
192 Views
The HTML DOM HR Object represent the element of an HTML document.Create hr object−SyntaxFollowing is the syntax −document.createElement(“HR”);Let us see an example of hr object−Example Live Demo body { text-align: center; background-color: #fff; color: #0197F6; } ... Read More