Ankitha Reddy has Published 88 Articles

How to display a short quotation in HTML?

Ankitha Reddy

Ankitha Reddy

Updated on 24-Jun-2020 08:04:28

The HTML tag is used for indicating short quotations (i.e. quotations that span multiple lines). The HTML tag also supports the following additional attributes −AttributeValueDescriptionciteURLURL of the quote, if it is taken from the web.ExampleYou can try to run the following code to implement tag in HTML ... Read More

Why should we avoid using global variables in C/C++?

Ankitha Reddy

Ankitha Reddy

Updated on 24-Jun-2020 06:10:51

We should avoid using global variables in any language, not only C++. This is because these variables pollute the global namespace, can cause some very nasty bugs in big projects as they can be accessed from any file and hence be modified from anywhere. These are some of the reasons ... Read More

What is MySQL LOAD DATA statement?

Ankitha Reddy

Ankitha Reddy

Updated on 22-Jun-2020 08:27:00

LOAD DATAThis statement is used for importing the data from data files into our database. It reads data records directly from a file and inserts them into a table. Its syntax would be as follows −SyntaxLOAD DATA LOCAL INFILE '[path/][file_name]' INTO TABLE [table_name ];Here, a path is the address of ... Read More

How MySQL WHILE loop statement can be used in stored procedure?

Ankitha Reddy

Ankitha Reddy

Updated on 22-Jun-2020 06:08:42

As we know that MySQL provides us loop statements that allow us to execute a block of SQL code repeatedly based on a condition. WHILE loop statement is one of such kind of loop statements. Its syntax is as follows −WHILE expression DO statements END WHILEActually, the WHILE loop checks ... Read More

CSS3 Multi-Column column-span Property

Ankitha Reddy

Ankitha Reddy

Updated on 21-Jun-2020 06:28:59

The column-span property is used to specify the span between columns. You can try to run the following code to implement column-span property using CSS −Example Live Demo    .multi {       /* Column count property */       -webkit-column-count: 4;       -moz-column-count: 4; ... Read More

Add shadow effects to text with CSS

Ankitha Reddy

Ankitha Reddy

Updated on 20-Jun-2020 13:15:20

Use the text-shadow property to add shadow effects to text. The following is an example to add shadow effects −Example Live Demo h1 { text-shadow: 2px 2px; } h2 { text-shadow: 2px 2px red; } h3 { text-shadow: 2px 2px 5px red; } h4 { color: white; text-shadow: 2px ... Read More

How MySQL evaluates if I store date along with time value in a column having DATE data type?

Ankitha Reddy

Ankitha Reddy

Updated on 20-Jun-2020 07:04:43

As we know that the default format for MySQL DATE data type is “YYYY-MM-DD” and in this format, there is no possibility to store the time value. But still, if we store date along with time value in a column having DATE data type then MySQL will show a warning ... Read More

How is it possible to store date such as February 30 in a MySQL date column?

Ankitha Reddy

Ankitha Reddy

Updated on 19-Jun-2020 13:57:07

Suppose we want to store the date such as February 30 in a MySQL table then we must have to first set ALLOW_INVALID_DATES mode enabled.For example, I am trying to add, without enabling ALLOW_INVALID_DATES mode, such kind of date in a table then MySQL will give an error as follows ... Read More

What is Comma operator in C++?

Ankitha Reddy

Ankitha Reddy

Updated on 18-Jun-2020 13:46:56

The purpose of the comma operator is to string together several expressions. The value of a comma-separated list of expressions is the value of the rightmost expression. Essentially, the comma's effect is to cause a sequence of operations to be performed.The values of the other expressions will be discarded. This ... Read More

Aggregation in Java

Ankitha Reddy

Ankitha Reddy

Updated on 17-Jun-2020 07:23:51

Aggregation refers to HAS-A relationship. Let’s look at the example first −Examplepublic class Vehicle{} public class Speed{} public class Van extends Vehicle {    private Speed sp; }This shows that class Van HAS-A Speed. By having a separate class for Speed, we do not have to put the entire code ... Read More

1 2 3 4 5 ... 9 Next
Advertisements