Giri Raju has Published 90 Articles

How can we see only the list of stored procedures in a particular MySQL database?

Giri Raju

Giri Raju

Updated on 22-Jun-2020 05:21:03

92 Views

We can see only the list of stored procedures in a particular MySQL database by the following query −mysql> SELECT ROUTINE_TYPE, ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA = 'query'AND ROUTINE_TYPE = 'PROCEDURE'// +--------------+------------------------+ | ROUTINE_TYPE | ROUTINE_NAME           | +--------------+------------------------+ | PROCEDURE    | allrecords     ... Read More

CSS3 Multi-Column column-rule Property

Giri Raju

Giri Raju

Updated on 21-Jun-2020 05:35:34

57 Views

The multi-column column-rule property is used to specify the number of rules.You can try to run the following code to implement the column-rule property in CSS3 −ExampleLive Demo                    .multi {             /* Column count property ... Read More

How can we change MySQL user password by using UPDATE statement?

Giri Raju

Giri Raju

Updated on 20-Jun-2020 11:43:23

2K+ Views

To change MySQL user password with the help of UPDATE statement, we need to update the ‘user’ table of the ‘mysql’ database. Its syntax would be as follows −SyntaxUSE mysql; UPDATE user SET authentication_string = PASSWORD(‘new_password’) WHERE user = user_name AND host = host_name;The first two statements will be common ... Read More

What is the maximum length of data we can put in a BLOB column in MySQL?

Giri Raju

Giri Raju

Updated on 20-Jun-2020 08:30:05

3K+ Views

As we know that BLOB is a binary large object that can hold a variable amount of data. The different TEXT objects offer a range of storage space from 255 bytes to 4 Gb. Following table shows the storage of different kinds of BLOB data type −Type of BLOBMaximum amount ... Read More

What kind of compound units can be used in MySQL EXTRACT() function?

Giri Raju

Giri Raju

Updated on 20-Jun-2020 06:14:32

63 Views

MySQL EXTRACT() function can use following compound units −SECOND_MICROSECONDMINUTE_MICROSECONDHOUR_MICROSECONDDAY_MICROSECONDMINUTE_SECONDHOUR_SECONDHOUR_MINUTEDAY_SECONDDAY_MINUTEDAY_HOURYEAR_MONTHSome of the examples of these compound units used in EXTRACT() function are as follows −mysql> Select EXTRACT(YEAR_MONTH from '2017-10-20'); +---------------------------------------+ | EXTRACT(YEAR_MONTH from '2017-10-20') | +---------------------------------------+ |                             ... Read More

What is onmousemove event in JavaScript?

Giri Raju

Giri Raju

Updated on 19-Jun-2020 11:07:27

1K+ Views

The onmousemove event triggers when the mouse pointer moves.ExampleYou can try to run the following code to learn how to work with onmousemove event in JavaScript −                                         This is demo text for mousemove event.    

What is the best way to remove an item from a Python dictionary?

Giri Raju

Giri Raju

Updated on 17-Jun-2020 11:47:49

129 Views

You can use the del function to delete a specific key or loop through all keys and delete them. For example, my_dict = {'name': 'foo', 'age': 28} keys = list(my_dict.keys()) for key in keys:    del my_dict[key] print(my_dict)This will give the output:{}You can also use the pop function to delete ... Read More

inheritance(is-a) v/s composition (has-a) relationship in Java

Giri Raju

Giri Raju

Updated on 17-Jun-2020 07:11:07

559 Views

IS-A RelationshipIS-A is a way of saying − This object is a type of that object. Let us see how the extends keyword is used to achieve inheritance. public class Animal { } public class Mammal extends Animal { } public class Reptile extends Animal { } public class Dog extends ... Read More

How to format hexadecimal Number in JavaScript?

Giri Raju

Giri Raju

Updated on 17-Jun-2020 06:35:28

844 Views

Firstly convert your number to hexadecimal with leading zeros and then format it by adding dashes.ExampleYou can try to run the following code to format hexadecimal number −Live Demo                    var num = 32122;          var myHex ... Read More

How to print current year in JavaScript?

Giri Raju

Giri Raju

Updated on 16-Jun-2020 13:27:38

954 Views

To get current year in JavaScript, use the getFullYear() method.ExampleYou can try to run the following code to print current year −Live Demo           Click below to get the current year:       Display Year                      function display() {             var date = new Date();             var res = date.getFullYear();             document.getElementById("test").innerHTML = res;          }          

Advertisements