Database Articles

Page 2 of 547

What are the differences between Zetta and ShareFile?

Bhanu Priya
Bhanu Priya
Updated on 16-Mar-2026 210 Views

Let us understand the concepts of ShareFile and Zetta before learning the differences between them. Both are cloud-based solutions but serve different purposes in file management and data protection. ShareFile ShareFile was launched by Jesse Lipson in 2005 and was later acquired by Citrix Systems in 2011. It can be integrated with third-party applications and current file storage systems to ensure flexible and synchronous file storage, modification, saving, sending, and retrieval of files. Key Features ShareFile Sync − Synchronizes files across devices automatically Desktop Widget − Easy access to files from desktop ...

Read More

Differentiate between Component and Object.

Bhanu Priya
Bhanu Priya
Updated on 16-Mar-2026 2K+ Views

In software engineering and distributed systems, understanding the distinction between objects and components is crucial for designing scalable and maintainable architectures. While both are fundamental building blocks, they serve different purposes and operate at different levels of abstraction. Object An object is defined as a concept, thing, or abstraction with clearly defined meaning and behavior. Objects are the fundamental units in object-oriented programming that encapsulate data and methods together. Features of Objects State − Contains data or attributes that define the object's current condition Operations − Methods or functions that can be performed on the ...

Read More

How to convert MySQL DATETIME value to JSON format in JavaScript?

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 726 Views

To convert MySQL DATETIME values to JSON format in JavaScript, you can parse the datetime string into a Date object and then use JSON.stringify() to convert it to JSON. This is useful when working with MySQL data in web applications. Understanding MySQL DATETIME Format MySQL DATETIME format is typically YYYY-MM-DD HH:MM:SS. JavaScript's Date constructor can parse various date formats, making conversion straightforward. Method 1: Converting to JSON Object with Individual Components This approach extracts individual date components and creates a structured JSON object: // Simulate MySQL DATETIME string var mySQLDateTime = new Date("2019-09-06 ...

Read More

Performing DataBase Operations in XAMPP

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 1K+ Views

Navigating through database operations in XAMPP can be challenging, particularly for beginners. Realizing this complexity, over 15 million active monthly users have turned to XAMPP for its ease of use and flexibility. This article offers a step−by−step guide on performing basic database operations in XAMPP, from data insertion to deletion. Let's take the first stride towards mastering your XAMPP database management skills together! Basic Database Operations in XAMPP Basic Database Operations in XAMPP include performing CRUD operations such as select, insert, update, and delete statements on a MySQL database using PHP. ...

Read More

Does Ternary operation exist in MySQL just like C or C++?

Samual Sam
Samual Sam
Updated on 15-Mar-2026 184 Views

Yes, ternary operation exists in MySQL using the CASE WHEN statement, which provides similar conditional logic to the ternary operator in C/C++. Let us first examine how the ternary operator works in C and then see its MySQL equivalent. Syntax C Ternary Operator: condition ? value_if_true : value_if_false MySQL Equivalent: CASE WHEN condition THEN value_if_true ELSE value_if_false END Example: C Ternary Operator Here is a complete C program demonstrating the ternary operator − #include int main() { int X = 5; ...

Read More

Extracting only date from datetime field in MySQL and assigning it to PHP variable?

Samual Sam
Samual Sam
Updated on 15-Mar-2026 799 Views

In PHP, you can extract only the date from a MySQL datetime field using the DateTime class. This is useful when you need to display or process only the date portion without time information. Syntax DateTime::createFromFormat("Y-m-d H:i:s", yourDateTimeValue)->format("yourFormatSpecifier"); Example Here's how to extract only the date from a MySQL datetime value ? 13/02/2018 Different Date Formats You can format the extracted date in various ways by changing the format specifier ? Y-m-d format: 2018-02-13 F j, Y format: February ...

Read More

How to add auto-increment to column in MySQL database using PhpMyAdmin?

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 10K+ Views

You can add auto_increment to a column in MySQL database with the help of ALTER command. The syntax is as follows − ALTER TABLE yourTableName MODIFY yourColumnName INT NOT NULL AUTO_INCREMENT; Using PhpMyAdmin To open PhpMyAdmin on localhost, you need to type the following URL in your browser − localhost/phpmyadmin The PhpMyAdmin interface appears as follows − phpMyAdmin Database: AutoIncrementDemo Table: AutoIncrementDemo Field: UserId | Type: INT | Primary Key ...

Read More

How can I get enum possible values in a MySQL database using PHP?

Samual Sam
Samual Sam
Updated on 15-Mar-2026 3K+ Views

You can get the enum possible values in a MySQL database using PHP by querying the INFORMATION_SCHEMA.COLUMNS table. This approach allows you to extract enum values programmatically without hardcoding them in your application. Database Setup First, let's create a sample table with an ENUM column ? CREATE TABLE EnumDemo ( Id int, Color ENUM('RED','GREEN','BLUE','BLACK','ORANGE') ); Method 1: Basic Query to Get Enum Values Use the INFORMATION_SCHEMA.COLUMNS table to retrieve the enum definition ? enum('RED','GREEN','BLUE','BLACK','ORANGE') Method 2: Extract Individual Enum Values Parse the enum string to get individual values as an array ?

Read More

Extract the Day / Month / Year from a Timestamp in PHP MySQL?

Samual Sam
Samual Sam
Updated on 15-Mar-2026 973 Views

To extract the Day/Month/Year from a timestamp in PHP, you can use the date_parse() function. This function parses a date string and returns an associative array with detailed date and time components. Syntax print_r(date_parse("anyTimeStampValue")); Example Let's extract day, month, and year from a timestamp using date_parse() ? Array ( [year] => 2019 [month] => 2 [day] => 4 [hour] => 12 [minute] => 56 ...

Read More

How to specify Decimal Precision and scale number in MySQL database using PHPMyAdmin?

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 2K+ Views

When working with DECIMAL data types in MySQL through PHPMyAdmin, you need to specify both precision and scale to properly store monetary values or other exact numeric data. This tutorial shows you how to configure decimal precision and scale using PHPMyAdmin interface. Understanding DECIMAL Precision and Scale The DECIMAL data type requires two parameters: DECIMAL(precision, scale) Where: Precision (X) − Total number of digits that can be stored Scale (Y) − Number of digits after the decimal point Example of DECIMAL Usage For DECIMAL(6, 4): Total digits: 6 Digits ...

Read More
Showing 11–20 of 5,468 articles
« Prev 1 2 3 4 5 547 Next »
Advertisements