Nishtha Thakur has Published 564 Articles

How to use LIKE Cause in Android sqlite?

Nishtha Thakur

Nishtha Thakur

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

165 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

unordered_multimap rehash() function in C++ STL

Nishtha Thakur

Nishtha Thakur

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

43 Views

The unordered_multimap rehash(N) function in C++ STL sets the number of buckets in the container to n or more. A rehash is forced if n is greater than the current number of buckets in the container. The new bucket count can either be equal to or greater than n. The ... Read More

How to find a document by the non-existence of a field in MongoDB?

Nishtha Thakur

Nishtha Thakur

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

65 Views

To find a document by the non-existence of a field in MongoDB, the syntax is as follows −db.yourCollectionName.find({ "yourFieldName" : { "$exists" : false } }).pretty();To understand the above syntax, let us create a collection with the document. The query to create a collection with a document is as follows ... Read More

How to implement MongoDB $or query?

Nishtha Thakur

Nishtha Thakur

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

98 Views

The syntax is as follows for the $or query in MongoDB −db.yourCollectionName.find({ $or : [ { "yourFieldName" : "yourValue1" }, {"yourFieldName":"yourValue2"}, ...........N ] } ).pretty();To understand the concept, let us create a collection with the document. The query to create a collection with a document is as follows −> db.orDemo.insertOne({"UserName":"Larry", ... Read More

unordered_multimap size() function in C++ STL

Nishtha Thakur

Nishtha Thakur

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

63 Views

unordered_multimap size() function in C++ STL returns the number of elements in the unordered map.AlgorithmBegin    Declare an empty map container m.    Performing reserve function to restrict the most appropriate    bucket_count of the map container.    Insert values in the map container.    Print the size of the ... Read More

How to use total_changes()in Android sqlite?

Nishtha Thakur

Nishtha Thakur

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

48 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

vector insert() function in C++ STL

Nishtha Thakur

Nishtha Thakur

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

661 Views

vector insert() function in C++ STL helps to increase the size of a container by inserting the new elements before the elements at the specified position.It is a predefined function in C++ STL.We can insert values with three types of syntaxes1. Insert values by mentioning only the position and value:vector_name.insert(pos, ... Read More

C++ Program to Implement Array in STL

Nishtha Thakur

Nishtha Thakur

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

414 Views

Different operations on array and pseudocodes:Begin In main(),    While TRUE do       Prints some choices.       Take input of choice.       Start the switch case          When case is 1             Print the size of ... Read More

How to return static strings in MySQL?

Nishtha Thakur

Nishtha Thakur

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

863 Views

In order to return static strings in MySQL, you can use UNION. Following is the syntax −select 'yourStringValue1' as yourAliasName UNION select 'yourStringValue2' as yourAliasName;Let us implement the above syntax to return static strings in MySQL. Following is the query −mysql> select 'HELLO' as staticStringsResult    -> UNION    -> ... Read More

How to use OR Conjunctive Operators in Android sqlite?

Nishtha Thakur

Nishtha Thakur

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

57 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

Advertisements