Anjana has Published 66 Articles

Write a C++ Program without Semicolons?

Anjana

Anjana

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

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

What is the use of RLIKE operator in MySQL?

Anjana

Anjana

Updated on 07-Feb-2020 11:10:06

Actually, RLIKE operator, a synonym for REGEXP, performs a pattern match of a string expression against a pattern. SyntaxRLIKE Pat_for_matchHere Pat_for_match is a pattern which is to be matched against an expression. Examplemysql> Select Id, Name from Student WHERE Name RLIKE 'v$'; +------+--------+ | Id   | Name   | +------+--------+ | ... 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

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

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

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

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

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

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

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

Assigning debug roles to few users of SAP ABAP program

Anjana

Anjana

Updated on 06-Dec-2019 11:14:34

Hope the role that you have added contains only one permission:Object S_DEVELOP    ACTVT = 03    DEVCLASS = *    OBJNAME = *    OBJTYPE = DEBUG    P_GROUP = *Try to perform a permission trace usingTransaction ST01If you still don’t find a check for the permission, there might ... Read More

Advertisements