Arjun Thakur has Published 1109 Articles

How to change auto increment number in the beginning in MySQL?

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 14:01:33

656 Views

The auto_increment is a default property that automatically increments the newly added record by 1. The auto_increment can be changed from the beginning as well. The procedure for that is given below −First, a table is created.mysql> CREATE table DemoAuto -> ( -> id int auto_increment, -> name varchar(100), -> ... Read More

MySQL Error - #1046 - No database selected

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 13:56:06

21K+ Views

The error-#1046 can occur when we are creating a table, but forget to select the database. Let us say we have started MySQL as shown below −After giving the correct password, the above window will open. Now create a table without choosing any database. This will show an error −mysql> ... Read More

How to draw grid using HTML5 and canvas or SVG?

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 13:43:08

457 Views

In the below given example, we have first defined the width and height of the grid. Then we are defining the size of canvas and drawn gird into a canvas.//we are setting the grid width and height var grid_w = 200; var grid_h = 200; //we are setting padding ... Read More

JDMonthName() function in PHP

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 12:51:38

27 Views

The JDMonthName() method returns a month name.Syntaxjdmonthname(julian_day, mode)Parametersjulian_day − A julian day numbermode  − Specifies which calendar to convert the Julian Day Count to, and what type of month names is to be returned−0 - Gregorian abbreviated form (Jan, Feb, Mar, etc.)1 - Gregorian (January, February, March, etc.)2 - Julian ... Read More

atan2() function in C++ STL

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 11:42:59

272 Views

The atan2() function returns the tangent inverse of the coordinate in terms of y and x. Here y and x are the values of the y and x coordinates respectively. It is an inbuilt function in C++ STL.The syntax of the atan2() function is given as follows.atan2(dataType var1, dataType var2)As ... Read More

Constructors in C++

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 11:39:55

9K+ Views

Constructors are functions of a class that are executed when new objects of the class are created. The constructors have the same name as the class and no return type, not even void. They are primarily useful for providing initial values for variables of the class.The two main types of ... Read More

Destructors in C++

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 11:36:56

17K+ Views

Destructors in C++ are members functions in a class that delete an object. They are called when the class object goes out of scope such as when the function ends, the program ends, a delete variable is called etc.Destructors are different from normal member functions as they don’t take any ... Read More

Abstraction in C++

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 11:25:15

1K+ Views

Abstraction involves providing only the pertinent information to the outside world and hiding the background details. It relies on the separation of interface and implementation for programming.Classes provide abstraction in C++. They provide public methods for the outside world to manipulate data and keep the rest of the class structure ... Read More

asinh() function in C++ STL

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 11:03:19

104 Views

The asinh() function returns the arc hyperbolic sine or the inverse hyperbolic sine of an angle given in radians. It is an inbuilt function in C++ STL.The syntax of the asinh() function is given as follows.asinh(var)As can be seen from the syntax, the function asinh() accepts a parameter var of ... Read More

cosh() function in C++ STL

Arjun Thakur

Arjun Thakur

Updated on 24-Jun-2020 10:56:50

112 Views

The cosh() function returns the hyperbolic cosine of an angle given in radians. It is an inbuilt function in C++ STL.The syntax of the cosh() function is given as follows.cosh(var)As can be seen from the syntax, the function cosh() accepts a parameter var of data type float, double or long ... Read More

Advertisements