Kumar Varma has Published 110 Articles

How to define an enumerated type (enum) in C++?

Kumar Varma

Kumar Varma

Updated on 11-Feb-2020 07:47:54

264 Views

An enumerated type declares an optional type name and a set of zero or more identifiers that can be used as values of the type. Each enumerator is a constant whose type is the enumeration. For example, if you are creating an application that has a fixed number of types ... Read More

Basics of C++ Programming Language?

Kumar Varma

Kumar Varma

Updated on 11-Feb-2020 05:19:52

460 Views

C++ is a programming language developed by Bjarne Stroustrup in 1979 at Bell Labs. C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features. It is a superset of C, and that virtually any legal C program is a legal C++ ... Read More

What is the best IDE of C++ on Window?

Kumar Varma

Kumar Varma

Updated on 10-Feb-2020 12:48:57

147 Views

Big projects are difficult to manage on mere text editors. You're likely to be more productive and less frustrated if you use an IDE in such cases. There are various types of IDE's and you should select the right one which fits your needs. There is no single best IDE ... Read More

What are the advantages of C++ Programming Language?

Kumar Varma

Kumar Varma

Updated on 10-Feb-2020 11:16:39

3K+ Views

Following are the advantages of C++ −C++ is a highly portable language and is often the language of selection for multi-device, multi-platform app development.C++ is an object-oriented programming language and includes concepts like classes, inheritance, polymorphism, data abstraction, and encapsulation which allow code reusability and makes programs very maintainable.C++ use ... Read More

What MySQL functions can we use to change the character case of a string?

Kumar Varma

Kumar Varma

Updated on 04-Feb-2020 06:02:25

96 Views

We can use LCASE() and LOWER() functions for changing the character case of a string to lower case and UCASE() and UPPER() functions for changing the character case of a string to upper case.Examplemysql> Select LCASE('NEW DELHI'); +--------------------+ | LCASE('NEW DELHI') | +--------------------+ | new delhi       ... Read More

When MySQL LOCATE() function returns NULL as the output?

Kumar Varma

Kumar Varma

Updated on 03-Feb-2020 06:11:55

205 Views

It will return NULL as the output when the value of either first argument i.e. substring or the value of second argument i.e. substring is NULL. Example below will demonstrate it −Examplemysql> Select LOCATE(NULL, 'Ram is a good boy')As Result; +--------+ | Result | +--------+ | NULL   | ... Read More

Is there any way to use values from a JSON object in a MySQL Select statement?

Kumar Varma

Kumar Varma

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

145 Views

Yes, you can use json_extract(). Let us first create a table −mysql> create table DemoTable    -> (    -> Data json    -> ); Query OK, 0 rows affected (0.63 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('{"Name": "John", "CountryName": "US"}'); Query OK, ... Read More

STR_TO_DATE as column, but column not found?

Kumar Varma

Kumar Varma

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

61 Views

You can use having clause. Let us first create a table −mysql> create table DemoTable    -> (    -> AdmissionDate varchar(100)    -> ); Query OK, 0 rows affected (0.55 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('10/12/2017'); Query OK, 1 row affected ... Read More

MySQL query to select rows except first row in descending order?

Kumar Varma

Kumar Varma

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

638 Views

Let us first create a table −mysql> create table DemoTable    -> (    -> Amount int    -> ); Query OK, 0 rows affected (0.50 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(10); Query OK, 1 row affected (0.17 sec) mysql> insert ... Read More

How to get the data associated with the maximum id in a MySQL table?

Kumar Varma

Kumar Varma

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

66 Views

We will first order by DESC and then fetch the value associated with maximum id −select *from yourTableName order by yourColumnName DESC LIMIT 1, 1;Let us first create a table −mysql> create table DemoTable    -> (    -> Alldata int    -> ); Query OK, 0 rows affected (0.63 ... Read More

Previous 1 ... 4 5 6 7 8 ... 11 Next
Advertisements