Sreemaha has Published 87 Answers

What is the difference between semicolons in JavaScript and in Python?

Sreemaha

Sreemaha

Updated on 19-Feb-2020 11:12:45

Semicolons are optional in Python. In JavaScript, it s also optional, but it is a good practice to add it and is sometimes a necessity in case of some statements. If in these statements, a semicolon is not inserted, then one gets automatically added, but it may change the purpose ... Read More

How to declare a constructor in Java?

Sreemaha

Sreemaha

Updated on 19-Feb-2020 07:16:09

While declaring the constructors you should keep the following points in mind.A constructor does not have a return type.The name of the constructor is same as the name of the class. A class can have more than one constructor.Examplepublic class Sample {    int num;    public Sample() {     ... Read More

Getting month name instead of numeric month number in report in SAP

Sreemaha

Sreemaha

Updated on 13-Feb-2020 12:37:25

There are various methods this can be donea) Use the Function module MONTH_NAME_GET - This Function module is used to return all the month and names in the respective language.b) You can also use the below formula −cstr(monthname(month({inputdate})))where “inputdate” is the date for which month name is required.c) Find the ... Read More

Query MDG tables via SAP Studio

Sreemaha

Sreemaha

Updated on 13-Feb-2020 12:22:25

An answer to your question is a big “YES”. You can execute queries against the tables either if you are using an ABAP program or also you can execute these queries from native SQL environment.For E.g.DATA: lt_TBL LIKE TABLE OF KNA1. SELECT * from KNA1 INTO lt_TBL up to 5 ... Read More

Usage of font-variant property in CSS

Sreemaha

Sreemaha

Updated on 30-Jan-2020 10:36:27

The font-variant property is used to create a small-caps effect. Possible values are normal and small-caps.<html>    <head>    </head>    <body>       <p style = "font-variant:small-caps;">          This text will be rendered as small caps       </p>    </body> </html>Read More

Usage of background property in CSS

Sreemaha

Sreemaha

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

The background property is used as a shorthand to specify the number of other background properties such as image, position, repeat, etc.<html>    <head>    </head>    <body>       <p style = "background:url(/images/pattern1.gif) repeat fixed;">          This parapgraph has fixed repeated background image.     ... Read More

Usage of background-position property in CSS

Sreemaha

Sreemaha

Updated on 30-Jan-2020 08:53:42

The background-position property is used to control the position of an image in the background.ExampleYou can try to run the following code to learn how to work with the background-position property. It sets the background image position 30 pixels away from the left side:<html>    <head>       <style> ... Read More

Style Rules in CSS

Sreemaha

Sreemaha

Updated on 30-Jan-2020 07:22:37

CSS comprises of style rules interpreted by the browser and then applied to the corresponding elements in your document. A style rule is made of three parts −Selector -  A selector is an HTML tag at which a style will be applied. This could be any tag like <h1> or <table> ... Read More

How do you find out which sequence number was assigned recently by MySQL AUTO_INCREMENT?

Sreemaha

Sreemaha

Updated on 30-Jan-2020 07:08:29

Last_Insert_Id() MySQL function is used to find out which sequence number was assigned recently by AUTO_INCREMENT.Examplemysql> Create table Employee(Id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, Name Varchar(5)); Query OK, 0 rows affected (0.13 sec) mysql> Insert into Employee(Name) Values('Harvinder'); Query OK, 1 row affected (0.06 sec) mysql> Insert ... Read More

How to use MySQL FROM_UNIXTIME() function to return datetime value in numeric format?

Sreemaha

Sreemaha

Updated on 30-Jan-2020 05:59:45

As we know that we can convert a time of datetime value to an integer by adding 0(+0) to them. In a similar way, we can convert the datetime value returned by FROM_UNIXTIME() function in numeric format. The following example will clarify it more −mysql> Select FROM_UNIXTIME(1555033470)+0 AS 'Date in ... Read More

Advertisements