Chandu yadav has Published 1091 Articles

MySQL select query to select rows from a table that are not in another table?

Chandu yadav

Chandu yadav

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

2K+ Views

For our example, we will create two tables and apply Natural Left Join to get the rows from a table not present in the second table. Creating the first table. mysql> create table FirstTableDemo -> ( -> id int, -> ... Read More

How to remove all non-alphanumeric characters from a string in MySQL?

Chandu yadav

Chandu yadav

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

2K+ Views

Non-alphanumeric characters are as follows − @, !, #, &, (), ?, / There is no inbuilt function to remove non-alphanumeric characters from a string in MySQL. Therefore, we create a function which removes all non-alphanumeric characters. The function declaration and definition is as follows. mysql> delimiter ... Read More

php_strip_whitespace() function in PHP

Chandu yadav

Chandu yadav

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

121 Views

The php_strip_whitespace() function returns source with stripped comments and whitespace. Syntax php_strip_whitespace(file_path) Parameters file_path − The path of file. Return The php_strip_whitespace() function returns stripped source code on success. Example The above code strip all the comments and whitespace.

How to pass data between activities with android Serializable

Chandu yadav

Chandu yadav

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

2K+ Views

Using serialization, we can pass object's state or array between two activities. Before getting into the code, we should know about serialization and how does it work with intent in android.Serialization is a marker interface. Using serialization, we can convert state of an object into a byte stream. The byte ... Read More

How to initialize elements in an array in C#?

Chandu yadav

Chandu yadav

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

228 Views

All arrays consist of contiguous memory locations. The lowest address corresponds to the first element and the highest address to the last element. To initialize an array, first you need to declare it. int[] marks; Here, int is the datatype [] specifies the size of the ... Read More

What are the differences between the BLOB and TEXT datatypes in MySQL?

Chandu yadav

Chandu yadav

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

3K+ Views

BLOB stands for Binary Large Objects and as its name suggests, it can be used for storing binary data while TEXT is used for storing large number of strings. BLOB can be used to store binary data that means we can store pictures, videos, sounds and programs also. For example, ... Read More

Which MySQL datatype to used to store an IP address?

Chandu yadav

Chandu yadav

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

5K+ Views

We can store an IP address with the help of INT unsigned. While using INSERT, include INET_ATON() and with SELECT, include INET_NTOA(). IP address is in dotted format. Let us see an example. Creating a table. mysql> create table IPV4AddressDemo -> ( -> ... Read More

How to display a list of images and text in a ListView in Android?

Chandu yadav

Chandu yadav

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

6K+ Views

Before getting into listview example, we should know about listview, Listview is a collection of items pulled from arraylist, list or any databases. Most uses of listview is a collection of items in vertical format, we can scroll up/down and click on any item.What is custom listview?Custom listview works based ... Read More

The Electromagnetic Spectrum

Chandu yadav

Chandu yadav

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

8K+ Views

The electromagnetic spectrum is the entire range of electromagnetic radiation according to the wavelength or frequencies. It has a range of frequencies from 1Hz to Hz. The waves in order of increasing frequencies are radio waves, microwaves, infrared rays, visible light, UV rays, X-rays and gamma rays.Among these range, ... Read More

Which one is preferred in between MySQL EXISTS and IN while using in Subqueries?

Chandu yadav

Chandu yadav

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

110 Views

The EXISTS tells if the query returned results or not while IN can be used for comparing one value with other. IN uses literal values. Note − IN is preferred in a subquery whenever a subquery result is very small. If the subquery result is very large then EXISTS is ... Read More

Advertisements