Chandu yadav has Published 1163 Articles

How to select last 10 rows from MySQL?

Chandu yadav

Chandu yadav

Updated on 12-Sep-2023 01:58:16

33K+ Views

To select last 10 rows from MySQL, we can use a subquery with SELECT statement and Limit concept. The following is an example. Creating a table. mysql> create table Last10RecordsDemo -> ( -> id int, -> name varchar(100) ... Read More

How to print out the contents of a vector in C++?

Chandu yadav

Chandu yadav

Updated on 12-Sep-2023 01:26:36

32K+ Views

Vectors are similar to the dynamic arrays but vectors can resize. Vectors are sequence containers that can change their size according to the insertion or deletion of elements. Containers are the objects which holds the data of same type.Vectors may allocate some extra storage for the future growth of elements ... Read More

How to select first 10 elements from a MySQL database?

Chandu yadav

Chandu yadav

Updated on 06-Sep-2023 11:53:08

44K+ Views

To select first 10 elements from a database using SQL ORDER BY clause with LIMIT 10.The syntax is as followsSELECT *FROM yourTableName ORDER BY yourIdColumnName LIMIT 10;To understand the above syntax, let us create a table. The query to create a table is as followsmysql> create table Clients    - ... Read More

MySQL - Insert current date/time?

Chandu yadav

Chandu yadav

Updated on 02-Sep-2023 15:55:56

48K+ Views

To insert only date value, use curdate() in MySQL. With that, if you want to get the entire datetime, then you can use now() method.Let us first create a table −mysql> create table CurDateDemo -> ( -> ArrivalDate datetime -> ); ... Read More

How to select last row in MySQL?

Chandu yadav

Chandu yadav

Updated on 02-Sep-2023 12:47:00

53K+ Views

To select the last row, we can use ORDER BY clause with desc (descending) property and Limit 1. Let us first create a table and insert some records with the help of INSERT command. The query is as follows. mysql> create table getLastRecord -> ( ... Read More

How to improve the ranking of your websites for search engines

Chandu yadav

Chandu yadav

Updated on 01-Jun-2022 07:11:46

162 Views

Let’s assume that, you want to promote your dance academy. As the owner of the institution, you want more people to know about the types of dance forms being taught in your institute and the other facilities you are providing. The more people know about your academy, the more students ... Read More

Why does one need a mentor in life to grow?

Chandu yadav

Chandu yadav

Updated on 26-Apr-2022 06:41:14

96 Views

Either you want a growth in the current role or kick off a new business, a good mentor can pave the way for you. At your workplace, you might find many individuals who hold a treasure of leadership experiences and people just fall for their intelligence. You can make such ... Read More

Create Three Equal Columns with Bootstrap grid Layout

Chandu yadav

Chandu yadav

Updated on 09-Feb-2022 07:23:05

994 Views

To create three equal columns layout with Bootstrap Grid Layout, you can try to run the following code −Example           Bootstrap Example                              Bootstrap Grid                       Column One             Column Two             Column Three                     Output

HTML5 Canvas distorted

Chandu yadav

Chandu yadav

Updated on 16-Dec-2021 12:28:24

499 Views

If the canvas looks distorted, then try to change the height and width −The default height and width of the canvas in HTML5 is of 2/1 ratio −width = 300 height = 150ExampleLet us see an example −                    #mycanvas{border:1px solid red;}                         Output

HTML Canvas to draw Bezier Curve

Chandu yadav

Chandu yadav

Updated on 16-Dec-2021 10:04:56

242 Views

To draw a Bezier curve, use the BezierCurveTo() method in HTML. Let us first see the syntax −ctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);Here, cp1x − Represents the x-coordinate of the first Bezier control pointcp1y − Represents the y-coordinate of the first Bezier control pointcp2x − Represents the x-coordinate of the ... Read More

Advertisements