Chandu yadav has Published 1091 Articles

MySQL ON vs USING?

Chandu yadav

Chandu yadav

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

6K+ Views

In general, we use ON in MySQL. In Joins, we use ON in a set of columns. USING is useful when both the tables share a column of the exact same name on which they join. Example of On. Creating our first table. mysql> CREATE table ForeignTableDemo ... Read More

What is the MySQL JDBC driver connection string?

Chandu yadav

Chandu yadav

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

493 Views

The MySQL JDBC connection string look like this − Class.forName("com.mysql.jdbc.Driver"); Above, Driver is an interface. Whenever your JDBC is running outside an application server, then the class DriverManager establish the connection. The DriverManager class is as follows − conn = (Connection) DriverManager.getConnection("jdbc:mysql://localhost/yourdatabaseName", ”yourRootName", "yourPassword"); Now, I ... Read More

Count the number of occurrences of a string in a VARCHAR field in MySQL?

Chandu yadav

Chandu yadav

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

5K+ Views

To count the number of occurrences of a string in a VARCHAR, we can use the logic of subtraction with length. First, we will create a table with the help of create command. mysql> create table StringOccurrenceDemo -> ( -> Cases varchar(100), ... Read More

How to use a function for default value in MySQL?

Chandu yadav

Chandu yadav

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

1K+ Views

We cannot use a function for default value in MySQL, but we can use triggers. Let us see an example. First, we will create a table. The CREATE command is used to create a table. mysql> CREATE table TbLFunctionTrigger - > ( - ... Read More

Trunks and Multiplexing

Chandu yadav

Chandu yadav

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

3K+ Views

Trunks Definition Trunks are a large-bandwidth communication channels connecting switching centres, forming the core of the telephone network. A trunk comprises of a cluster of broadcast frequencies that are suitable for long haul communication of many voice and data signals simultaneously. Features The characteristic features of a trunk are − ... Read More

Pulse Code Modulation

Chandu yadav

Chandu yadav

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

1K+ Views

Pulse code modulation (PCM) is a technique of digitally representing analog signals. It takes samples of the amplitude of the analog signal and changes it to binary data. PCM technique is used by codecs in telephone networks to convert analog signals in local loops to digital signals in the trunks, ... Read More

What is the difference between MySQL stored procedure and function?

Chandu yadav

Chandu yadav

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

1K+ 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

593 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

105 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

Advertisements