Anjana has Published 53 Articles

Different ways to concatenate Strings in Java

Anjana

Anjana

Updated on 26-Feb-2020 05:13:14

395 Views

You can concatenate two strings in Java either by using the concat() method or by using the ‘+’ , the “concatenation” operator.Examplepublic class ConncatSample {    public static void main(String []args) {       String s1 = "Hello";       String s2 = "world";       String ... Read More

Using an Angular app as SAP Fiori application

Anjana

Anjana

Updated on 13-Feb-2020 10:51:11

456 Views

As you mentioned, you are moving to SAP so it means you are moving to SAP HANA Cloud platform or backend SAP system. You can continue with just HTML Angular application that can connect to the backend via an OData service. Angular JS is JavaScript library that adds lot of features ... Read More

Write a C++ Program without Semicolons?

Anjana

Anjana

Updated on 11-Feb-2020 05:55:11

288 Views

There are multiple ways to write a C++ program without semicolons. Note that doing this is very bad practice and should never be used in real code. This is presented just as informational content. The easiest way to write a C++ Program without Semicolons is using if statements. Almost all ... Read More

How can I remove the leading and trailing spaces both at once from a string without using MySQL LTRIM() and RTRIM() functions?

Anjana

Anjana

Updated on 06-Feb-2020 06:48:49

82 Views

Other than LTRIM() and RTRIM() functions, MySQL has TRIM() function to remove leading and trailing function both at once from a string. The use of TRIM() function can be understood from the following example of a test_trim table which has a column ‘Name’ containing the names with leading and trailing ... Read More

How is it possible in MySQL to find the location of the first occurrence of a substring in a string?

Anjana

Anjana

Updated on 04-Feb-2020 05:50:33

282 Views

MySQL LOCATE() function makes it possible to find the location of the first occurrence of a substring in a string. Following is the syntax of using it −SyntaxLOCATE(Substring, String)In this function, Substring is the string whose position of occurrence needs to find and the string is a string from which ... Read More

How can CONCAT() function be used with MySQL WHERE clause?

Anjana

Anjana

Updated on 30-Jan-2020 07:18:40

2K+ Views

Suppose from the table ‘Student’ we want to concatenate the values of columns, ‘Name’, ‘Address’ and ‘Columns’, based on the condition that is also a concatenation of values from columns, ’Name’, ‘Subject’, provided in WHERE clause with the help of CONCAT() function. We can use the following query to give ... Read More

How can we use MySQL self-computed output from any expression, function etc. for inserting values in a row?

Anjana

Anjana

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

49 Views

While inserting the values in a row, we can use the value of self-computed output from any expression, function etc. Here is an example to demonstrate it −mysql> Insert into employee(id, emp_name)Select 1+1, Concat_ws(' ', 'Gaurav', 'Kumar'); Query OK, 1 row affected (0.04 sec) Records: 1 Duplicates: 0 Warnings: 0 ... Read More

How can we use MySQL ALTER TABLE command for adding comments on columns?

Anjana

Anjana

Updated on 29-Jan-2020 06:05:12

969 Views

We can use ‘COMMENT’ keyword with ALTER TABLE command while modifying the column to add comments on columns. For example if we want to add comment in column ‘id’ of table ‘testing’ then following query will do it −mysql> ALTER TABLE testing MODIFY id INT COMMENT 'id of employees'; Query ... Read More

How can we create our own choice MySQL database?

Anjana

Anjana

Updated on 28-Jan-2020 10:28:48

80 Views

CREATE DATABASE db_name can be used to create our own choice MySQL database. For example to create a database named Sample, we should have to run the command as follows −mysql> CREATE DATABASE Sample; Query OK, 1 row affected (0.04 sec)

How to integrate Google AdSense into your webpage?

Anjana

Anjana

Updated on 10-Jan-2020 11:10:20

238 Views

If your website is having a sufficient content and a good number of page views, then start adding some advertisements to earn money. Google AdSense is a free and easy way to earn money by placing ads on your website.Integrating Google AdSense on a website is quite easy. Let’s see ... Read More

Advertisements