Manikanth Mani has Published 48 Articles

What happens if I will use integer values as arguments of MySQL LOCATE() function?

Manikanth Mani

Manikanth Mani

Updated on 03-Feb-2020 05:54:05

51 Views

MySQL allows us to use integer values as the arguments of the LOCATE() function. We do not need to use quotes. It can be demonstrated with the help of the following example −Examplemysql> Select LOCATE(5, 1698235); +-------------------+ | LOCATE(5, 1698235) | +-------------------+ |               ... Read More

How can CONCAT() function be applied on columns of MySQL table?

Manikanth Mani

Manikanth Mani

Updated on 30-Jan-2020 07:20:26

102 Views

We can use CONCAT() function to combine the values of two or more columns. In this case, the arguments of the CONCAT() functions would be the name of the columns. For example, suppose we have a table named ‘Student’ and we want the name and address of the student collectively ... Read More

What do you mean by default MySQL database for the user?

Manikanth Mani

Manikanth Mani

Updated on 28-Jan-2020 12:26:42

109 Views

Actually, there is no default database for the user. But we have default database for the current session. It can be seen from the following query −mysql> Select Database(); +------------+ | Database() | +------------+ | sample     | +------------+ 1 row in set (0.00 sec)The above result set shows ... Read More

How can I check MySQL tables from a database in accordance with particularcolumn/s name?

Manikanth Mani

Manikanth Mani

Updated on 28-Jan-2020 10:58:20

54 Views

The following statement shows the list of two tables having a column ‘email’ in Sample database −mysql> SELECT DISTINCT TABLE_NAME     -> FROM INFORMATION_SCHEMA.COLUMNS     -> WHERE COLUMN_NAME IN('EMAIL')     -> AND TABLE_SCHEMA = 'SAMPLE'; +---------------+ | TABLE_NAME    | +---------------+ | employee      | | new_student   | +---------------+ 2 rows in set (0.04 sec)

How to set src to the img tag in html from the system drive?

Manikanth Mani

Manikanth Mani

Updated on 09-Jan-2020 08:42:43

18K+ Views

To use an image on a webpage, use the tag. The tag allows you to add image source, alt, width, height, etc. The src is to add the image URL. The alt is the alternate text attribute, which is text that is visible when the image fails to load.With ... Read More

Creating User roles and profiles in SAP system

Manikanth Mani

Manikanth Mani

Updated on 05-Dec-2019 10:34:33

186 Views

This can be done using – Legacy Systems Migration Workbench LSMW transaction. This workbench works like a sort of macro recorder and allows you to record the steps in a transaction and you can replay that record multiple times as per the requirement. This also allows you to replace the ... Read More

Generating any custom JSON in ABAP

Manikanth Mani

Manikanth Mani

Updated on 05-Dec-2019 10:30:30

2K+ Views

You can use class ZCL_MDP_JSON Library that can encode/parse any JSON. JSON is supported natively in ABAP by the following features:With the use of JSON-XML- it is known as special XML format that can be used for JSON data to be described using an XML representation. By defining a mapping between ... Read More

Setting up a JDBC connection to remote SAP HANA system

Manikanth Mani

Manikanth Mani

Updated on 05-Dec-2019 09:36:57

685 Views

You are using the correct Port number for instance number “00”. Port number 300315, here 00 represents instance number of your HANA system.Try using HANA client jar file ngdbc.jar instead of SAP Jar file.try {    Class.forName("com.sap.db.jdbc.Driver");    String url ="jdbc:sap://xx.x.x.xxx:30015/DBNAME"; //IP Address of HANAsystem followed by Port number   ... Read More

Write a java program reverse tOGGLE each word in the string?

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

505 Views

To perform a reverse toggle split the words of a string, reverse each word using the split() method, change the first letter of each word to lower case and remaining letters to upper case.Example Live Demoimport java.lang.StringBuffer; public class ToggleReverse {    public static void main(String args[]){       String sample = ... Read More

What is the difference between StringBuffer and StringBuilder in java?

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

241 Views

The StringBuffer and StringBuilder classes are used when there is a necessity to make a lot of modifications to Strings of characters.Unlike Strings, objects of type StringBuffer and String builder can be modified over and over again without leaving behind a lot of new unused objects.The StringBuilder class was introduced as of ... Read More

Advertisements