Chandu yadav has Published 1276 Articles

What is the difference between MySQL stored procedure and function?

Chandu yadav

Chandu yadav

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

956 Views

Stored Procedure In MySQL, a stored procedure can be called with the help of call statement. A stored procedure returns more than one value. A stored procedure returns 0 by default. It cannot be used in SQL query and is based on precompile. Function A function can be called inside ... Read More

Enhanced Data rates for GSM Evolution (EDGE)

Chandu yadav

Chandu yadav

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

279 Views

Enhanced Data-rates for GSM Evolution (EDGE) is an improved version of GSM providing higher data transmission rate than GSM, while being compatible with the older systems. Features It was standardized by 3GPP as a part of GSM family and was deployed in GSM networks in 2003. The other names ... Read More

Difference between two timestamps in seconds in MySQL?

Chandu yadav

Chandu yadav

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

1K+ Views

Let us now see the following methods to calculate the time difference between two timestamps in seconds. Method The following is the query to calculate the difference between two timestamps. mysql> SELECT TIMESTAMPDIFF(SECOND, '2018-10-17 11:51:55', '2018-10-17 11:51:58'); The following is the output in seconds. +---------------------------------------------------------------------+ | ... Read More

prev() function in PHP

Chandu yadav

Chandu yadav

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

31 Views

The prev() function rewinds the internal array pointer. It outputs the previous element in the array. Syntax prev(arr) Parameters arr − The specified array. Required. Return The pos() function returns the value of the previous element in an array. Example The following is an example − ... Read More

Rank function in MySQL?

Chandu yadav

Chandu yadav

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

383 Views

The rank() function can be used to give a rank for every row within the partition of a result set. First, let us create a table − mysql> create table RankDemo mysql> ( mysql> id int mysql> ); Query OK, ... Read More

How to do a batch insert in MySQL?

Chandu yadav

Chandu yadav

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

2K+ Views

To do a batch insert, we need to use all column names with parenthesis, separated by ‘, ’. Let us see an example. First, we will create a table. The following is the CREATE command to create a table. mysql> CREATE table MultipleRecordWithValues - > ( ... Read More

Open MySQL root access from all hosts?

Chandu yadav

Chandu yadav

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

679 Views

To open root access from all hosts, we need to change the database to “mysql” with the help of USE command. The syntax of USE command is as follows − USE anyDatabasename; Now, I will use predefined database ‘mysql’, which is as follows − mysql> use mysql; ... Read More

Voice over LTE (VoLTE)

Chandu yadav

Chandu yadav

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

744 Views

Voice over long-term evolution or Voice-over LTE (VoLTE) are the standards in all-IP networks for voice communication as well as data communication over 4G LTE networks. VoLTE offers services like creating, provisioning and managing high-speed voice, data, multimedia and messaging services on a 4G wireless network for mobile and ... Read More

How to get the count of each distinct value in a column in MySQL?

Chandu yadav

Chandu yadav

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

3K+ Views

Let us see an example to get the count of each distinct value in a column. Firstly, we will create a table. The CREATE command is used to create a table. mysql> create table DistinctDemo1 - > ( - > id int, ... Read More

Compilation and Execution of a C# Program

Chandu yadav

Chandu yadav

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

15K+ Views

To compile and execute a program in C#, you just need to click the Run button or press F5 key to execute the project in Microsoft Visual Studio IDE. Compile a C# program by using the command-line instead of the Microsoft Visual Studio IDE − Open a text editor ... Read More

Advertisements