Showing entries 1 to 10 of 26
10 Older Entries »
Displaying posts with tag: MySQL Tutorial (reset)
MySQL Create User with Password

This tutorial explains how to create a user with password in MySQL. We’ll use the MySQL Create User command and describe it with the help of examples. By using this command, you can introduce a new user and grant him/her the required permissions or rights. Usually, you might be using the root user to access […]

The post MySQL Create User with Password appeared first on Learn Programming and Software Testing.

MySQL CURRENT_TIMESTAMP() Function

This tutorial explains how to use the MySQL CURRENT_TIMESTAMP() function with the help of examples. By using it, you can convert or display the current date and time. The output format is either ‘YYYY-MM-DD HH:MM: SS’ format or YYYYMMDDHHMMSS, which depends on the context of the calling function, whether it is numeric or string. The […]

The post MySQL CURRENT_TIMESTAMP() Function appeared first on Learn Programming and Software Testing.

Grant Privileges on a Database in MySQL

This tutorial explains how you can grant privileges on a database in MySQL. It will introduce you all the steps beginning from connecting to MySQL and then accessing the MySQL commands to set the desired level of privileges. So, if you wish to grant or update the privileges in MySQL, first you should connect to […]

The post Grant Privileges on a Database in MySQL appeared first on Learn Programming and Software Testing.

MySQL FROM_UNIXTIME() Function

This tutorial explains how to use the MySQL FROM_UNIXTIME() function with the help of examples. By using it, you can convert or display a UNIX_TIMESTAMP value to a timestamp. The output format is either YYYY-MM-DD-HH-MM-SS or YYYYMMDDHHMMSS, which depends on the calling context of the function. It means that FROM_UNIXTIME() would return a string for […]

The post MySQL FROM_UNIXTIME() Function appeared first on Learn Programming and Software Testing.

MySQL UPSERT | INSERT or UPDATE Whichever is Applicable

This tutorial explains about MySQL UPSERT command with the help of simple examples. An upsert is a smart operation which turns into INSERT or UPDATE whichever is applicable. Also, it is an atomic transaction, means complete in a single step. Let’s understand – If a record is new, then UPSERT triggers an INSERT. But, if […]

The post MySQL UPSERT | INSERT or UPDATE Whichever is Applicable appeared first on Learn Programming and Software Testing.

MySQL Date and Date Functions

This tutorial explains about MySQL DATE data type and walks you through some of the standard date functions. It will help you use and handle dates more efficiently with MySQL. MySQL DATE is a temporal data type for accessing and setting dates by applications. It accepts DATE values only in YYYY-MM-DD format. And MySQL doesn’t […]

The post MySQL Date and Date Functions appeared first on Learn Programming and Software Testing.

MySQL LOWER() and LCASE() Functions Explained

This tutorial explains MySQL LOWER()/LCASE() functions which convert the upper case characters of a string to the LOWER case. We’ll describe the functioning of this method with the help of simple examples. 1. LOWER()/LCASE() Syntax 2. LOWER()/LCASE() to convert text to lower case 3. LOWER()/LCASE() on table data 4. LOWER()/LCASE() on binary text Let’s now […]

The post MySQL LOWER() and LCASE() Functions Explained appeared first on Learn Programming and Software Testing.

MySQL UPPER() and UCASE() Functions Explained

This tutorial explains MySQL UPPER()/UCASE() functions which convert the lower case characters of a string to upper case. We’ll describe the functioning of this method with the help of simple examples. 1. UPPER()/UCASE() Syntax 2. UPPER()/UCASE() to convert text to upper case 3. UPPER()/UCASE() on table data 4. UPPER()/UCASE() on binary text Let’s now go through each of the section one by one. MySQL UPPER()/UCASE() Functions As stated initially, UPPER() is a built-in MySQL function which changes a string value to upper case. So, let’s now see the details and check out how can we use it. Syntax Below is

The post MySQL UPPER() and UCASE() Functions Explained appeared first on Learn Programming and Software Testing.

MySQL ORDER BY with Simple Examples

This tutorial explains MySQL ORDER BY clause and its usage with both the ASC and DESC options. We’ll describe this MySQL statement with the help of simple examples. 1. ORDER BY Clause Syntax 2. ORDER BY W/O ASC or DESC 3. ORDER BY DESC 4. ORDER BY Relative Position 5. ORDER BY Two Fields ASC & DESC Let’s now go through each of the section one by one. MySQL ORDER BY Clause The MySQL SELECT command doesn’t return a sorted result set by default. Hence, to sort the output, you have to append the ORDER BY clause in the SELECT

The post MySQL ORDER BY with Simple Examples appeared first on Learn Programming and Software Testing.

MySQL Data Types Explained

This tutorial explains all MySQL data types, their characteristics, and min, max as well as possible default values. We’ll describe their usages so that you can use them efficiently for creating schemas and tables. A MySQL table can have one or more fields with specific data types such as a string or date. However, there are more available in MySQL to ease up your job of collecting and storing data. It is also crucial that you understand which data type should you use and when. Here are some standard goals that define them what do they represent: 1. The data,

The post MySQL Data Types Explained appeared first on Learn Programming and Software Testing.

Showing entries 1 to 10 of 26
10 Older Entries »