Radhakrishna has Published 85 Articles

How can we import data from .txt file into MySQL table?

radhakrishna

radhakrishna

Updated on 04-Feb-2020 05:58:37

4K+ Views

It can be done with the help of LOAD DATA INFILE statement. To illustrate the concept we are having the following data, separated by tab, in ‘A.txt’ whose path is d:/A.txt −100 John  USA 10000 101 Paul  UK  12000 102 Henry NZ  11000 103 Rick  USA 17000 104 Corey USA ... Read More

Usage of white-space property in CSS

radhakrishna

radhakrishna

Updated on 31-Jan-2020 06:22:55

88 Views

The white-space property is used to control the flow and formatting of text.ExampleYou can try to run the following code to implement white-space property:                            This text has a line break and the white-space pre setting tells the browser to honor          it just like the HTML pre tag.    

Set the font style with CSS

radhakrishna

radhakrishna

Updated on 30-Jan-2020 09:22:11

200 Views

To set the font style, use the font-style property. Set the font to italic, normal and oblique.ExampleYou can try to run the following code to set the font-style to italic with CSS:                            Europe, Australia, South America are continents.          

Usage of background-repeat property in CSS

radhakrishna

radhakrishna

Updated on 30-Jan-2020 08:52:21

113 Views

The background-repeat property is used to control the repetition of an image in the background. You can use no-repeat value for the background-repeat property if you don't want to repeat an image, in this case, the image will display only once.ExampleYou can try to run the following code to learn ... Read More

Universal Selectors in CSS

radhakrishna

radhakrishna

Updated on 30-Jan-2020 07:21:53

712 Views

A selector is an HTML tag at which a style will be applied. This could be any tag like or etc.With the type selector, set for HTML tags like h1, h2, h3, p, etc:h2 {    color: #FFFF00; }Rather than selecting elements of a specific type, the universal ... Read More

How can we ignore the negative values return by MySQL DATEDIFF() function?

radhakrishna

radhakrishna

Updated on 29-Jan-2020 06:39:03

1K+ Views

As we know that DATEDIFF() function is used to get the difference in a number of days between two dates. Hence, it is quite possible that it returns negative value as well.mysql> select * from differ; +------------+-------------+ | OrderDate  | WorkingDate | +------------+-------------+ | 2017-10-22 | 2017-10-29  | | 2017-10-25 ... Read More

How can we know about the starting range of TIMESTAMP data type with the help of MySQL FROM_UNIXTIME() function?

radhakrishna

radhakrishna

Updated on 28-Jan-2020 10:43:55

153 Views

As we know that this function converts a number of seconds into TIMESTAMP value. So by providing 0 seconds as the argument, it will give us the starting range of TIMESTAMP data type.mysql> Select FROM_UNIXTIME(0); +-------------------------+ | FROM_UNIXTIME(0)        | +-------------------------+ | 1970-01-01 05:30:00     | +-------------------------+ ... Read More

What is super() function in JavaScript?

radhakrishna

radhakrishna

Updated on 08-Jan-2020 10:55:23

267 Views

Use the super() function to call the constructor of the parent class and access functions on an object's parent class.ExampleYou can try to run the following code to implement super()Live Demo                    class Department {           ... Read More

What is the difference between non-static methods and abstract methods in Java?

radhakrishna

radhakrishna

Updated on 19-Dec-2019 06:36:11

2K+ Views

Following are the notable differences between non-static methods and abstract methods.Non-static (normal) methodsAbstract methodsThese methods contain a body.Abstract methods don’t have body these are ended with a semicolonYou can use normal method directly.You cannot use abstract methods directly, to use them you need to inherit them and provide body to ... Read More

Getting Error while calling XBP Function Module via SAP.net connector

radhakrishna

radhakrishna

Updated on 10-Dec-2019 09:03:22

118 Views

Note that you need to execute function call in a single session so you have to wrap your logic into JCoContext. Try using below method:try {    JCoContext.begin(destination);    try {       // your function calls here       // probably bapiTransactionCommit.execute(destination);    } catch(AbapException ex) { ... Read More

Advertisements