Sai Subramanyam has Published 102 Articles

How can we add a time interval to date stored in a column of MySQL table?

Sai Subramanyam

Sai Subramanyam

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

170 Views

MySQL ADDTIME() function can be used to add a time interval in the data stored in a column of the table. The syntax of this function is ADDTIME(date, ‘expression unit’). It can be demonstrated by following the example which uses the data from table ‘collegedetail’. mysql> Select estb, ADDTIME(estb, '05:04:25')AS 'Date ... Read More

How are variables allocated memory in JavaScript?

Sai Subramanyam

Sai Subramanyam

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

254 Views

JavaScript handling of the variable is different from other programming languages C, C++., Java, etc. Variables in JavaScript can be thought of as named containers. You can place data into these containers and then refer to the data simply by naming the container. Before you use a variable in a ... Read More

What does the method toString(obj[] a) do in java?

Sai Subramanyam

Sai Subramanyam

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

74 Views

The toString(Object[] a) method of the java.util.Arrays class returns a string representation of the contents of the specified Object array. If the array contains other arrays of elements, they are converted to strings by the Object.toString() method inherited from Object, which describes their identities rather than their contents. Example ... Read More

How can I search data from MySQL table based on similar sound values?

Sai Subramanyam

Sai Subramanyam

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

83 Views

With the help of SOUNDS LIKE operator, MySQL search the similar sound values from the table. Syntax Expression1 SOUNDS LIKE Expression2 Here, both Expression1 and Expression2 will be compared based on their English pronunciation of sound. Example Following is an example from ‘student’ table which will match the ... Read More

How OLD and NEW keywords enable us to access columns in row affected bya trigger?

Sai Subramanyam

Sai Subramanyam

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

514 Views

As we know that in trigger definition, we can refer to columns of the row being inserted, updated or deleted. Following are the ways OLD and NEW keywords enable us to access columns − We must have to prefix the column name with a qualifier of OLD to refer ... Read More

What does the method copyOf(int[] original, int newLength) do in java?

Sai Subramanyam

Sai Subramanyam

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

157 Views

The copyOf (int[] original, int newLength) method of the java.util.Arrays class copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. For all indices that are valid in both the original array and the copy, the two arrays will contain identical values. ... Read More

How can we check that by default MySQL CHAR() function returns a binary string?

Sai Subramanyam

Sai Subramanyam

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

70 Views

With the help of CHARSET() function, we can check which string is returned by MySQL CHAR() function. Following result set will demonstrate it − mysql> Select CHARSET(CHAR(85)); +-------------------+ | CHARSET(CHAR(85)) | +-------------------+ | binary | +-------------------+ 1 row in set (0.00 sec)

How to set all the border left properties in one declaration with JavaScript?

Sai Subramanyam

Sai Subramanyam

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

61 Views

To set all the border left properties in a single declaration, use the borderLeft property. You can try to run the following code to learn how to set the border left properties − Example Live Demo ... Read More

How can we select records from a table if the absolute value of the difference between two values is greater than a certain number?

Sai Subramanyam

Sai Subramanyam

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

51 Views

We can use MySQL absolute value i.e. ABS() function to select records from a table if the absolute value of the difference between two values is greater than a certain number. We are using the data from ‘Marks’ table to demonstrate it for example. Example mysql> Select * from ... Read More

In MySQL, how we can get the corresponding string representation of the binary value of a number?

Sai Subramanyam

Sai Subramanyam

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

240 Views

In MySQL, BIN() function is used to get the corresponding string representation of the binary value of a number. It considers the number as a DECIMAL number. Syntax BIN(value) Here value, a BIGINT number, is the number whose binary value is to be retrieved. Example mysql> Select ... Read More

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