MySQL Articles

Page 5 of 355

Difference between SQL and PL/SQL

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 16K+ Views

SQL (Structured Query Language) is a standard database language used to create, maintain, and retrieve data from relational databases. PL/SQL (Procedural Language extension to SQL) extends SQL by adding procedural capabilities like variables, loops, conditions, and error handling. SQL Example SQL executes a single declarative statement at a time ? -- SQL: single operation, declarative SELECT name, salary FROM employees WHERE department = 'Engineering'; PL/SQL Example PL/SQL can execute multiple operations with procedural logic ? -- PL/SQL: procedural block with variables, loops, conditions DECLARE v_name employees.name%TYPE; ...

Read More

Difference between MySQL and MongoDB

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 897 Views

MySQL is a relational database management system (RDBMS) that stores data in structured tables with rows and columns. MongoDB is a NoSQL document database that stores data as flexible JSON-like documents. Both are widely used but serve different use cases. MySQL MySQL is an open-source relational database owned by Oracle. It uses SQL (Structured Query Language) to query and manage data stored in predefined tables with fixed schemas. MySQL enforces data integrity through relationships, constraints, and joins. MongoDB MongoDB is an open-source NoSQL database developed by MongoDB Inc. It stores data as BSON (Binary JSON) documents ...

Read More

Difference between Static SQL and Dynamic SQL

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 28K+ Views

Static SQL and Dynamic SQL are two approaches to writing SQL statements in applications. Static SQL uses fixed, hard-coded queries known at compile time, while Dynamic SQL constructs queries at runtime based on user input or program logic. Static SQL Static SQL refers to SQL statements that are fixed and hard-coded into the application. Since the queries are known at compile time, they can be pre-analyzed, optimized, and do not require special security handling. Example -- Static SQL: query is fixed at compile time SELECT name, salary FROM employees WHERE department = 'Engineering'; ...

Read More

Difference between SQL(Structured Query Language) and T-SQL(Transact-SQL).

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 831 Views

SQL (Structured Query Language) and T-SQL (Transact-SQL) are both used to interact with relational databases. SQL is the standard query language common across all RDBMS platforms, while T-SQL is Microsoft's proprietary procedural extension to SQL used specifically with SQL Server. SQL (Structured Query Language) SQL is a non-procedural, declarative language used by database engines to create, modify, and query databases. You tell the database what you want, not how to get it. SQL is standardized by ANSI/ISO and is common across RDBMS platforms like MySQL, PostgreSQL, Oracle, and SQL Server. Example -- Standard SQL: simple ...

Read More

Difference between MySQL and SQL Server

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 8K+ Views

Both MySQL and SQL Server are relational database management systems (RDBMS) that use SQL for querying and managing data. MySQL is open source and owned by Oracle, whereas SQL Server is a licensed commercial product developed by Microsoft. MySQL MySQL is an open-source RDBMS that is widely used in web applications. It is free to use under the GPL license, lightweight in storage requirements, and runs on multiple platforms including Linux, Windows, and macOS. MySQL is the database behind many popular platforms like WordPress, Facebook, and Twitter. SQL Server SQL Server (Microsoft SQL Server) is a ...

Read More

Date value is not populating while using Native SQL in SAP to insert an Order

Anjana
Anjana
Updated on 13-Mar-2026 407 Views

When inserting date values using Native SQL in SAP ABAP, you may encounter issues with date population. The primary issue is often related to variable binding syntax in the SQL statement. Solution You need to put a colon (:) before the variable to properly bind it in Native SQL. Here's the corrected syntax − EXEC SQL. INSERT INTO order VALUES('2', :sy-datum) ENDEXEC. The colon (:) is essential for host variable binding in Native SQL. Without it, the system treats sy-datum as a literal string rather than a variable reference. Alternative ...

Read More

Adding a condition using SQL or an ABAP program and difference in performance

Rama Giri
Rama Giri
Updated on 13-Mar-2026 324 Views

When adding conditions to filter data, you can choose between implementing the logic in SQL or in an ABAP program. For small datasets like 500 records, there would not be much difference in performance between both options. You can use either of them based on your specific requirements. SQL Approach Using SQL WHERE clause directly in the database query is generally more efficient as it filters data at the database level − SELECT * FROM table_name INTO TABLE lt_table WHERE exp > 5. ABAP Program Approach Alternatively, you can ...

Read More

Changing Data Element of a column and showing description in Transaction SE16N

Anjana
Anjana
Updated on 13-Mar-2026 524 Views

When working with transaction SE16N in SAP, you may need to change the data element of a column to display proper descriptions. This process involves updating the Data Dictionary (DDIC) element and ensuring the system recognizes the changes. Methods to Update Data Element Descriptions Method 1: Activate the Change The primary approach is to activate the change after modifying the data element. This ensures the system properly updates the column description in SE16N. Method 2: Force System Recognition An alternative method involves temporarily creating an error to force the system to refresh the element description ...

Read More

How to display 3 random values from MySQL table?

AmitDiwan
AmitDiwan
Updated on 12-Mar-2026 246 Views

To display random values from a MySQL table, use the RAND() function in the ORDER BY clause to shuffle the rows randomly, and LIMIT to restrict the number of results. The general syntax is − SELECT yourColumnName FROM yourTableName ORDER BY RAND() LIMIT 3; Creating the Demo Table Let us first create a table and insert some records − CREATE TABLE DemoTable646 ( Id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, FirstName VARCHAR(100) ); INSERT INTO DemoTable646 (FirstName) VALUES ('John'); INSERT INTO DemoTable646 (FirstName) VALUES ('Bob'); INSERT INTO DemoTable646 (FirstName) VALUES ...

Read More

Searching multiple columns for a row match in MySQL

AmitDiwan
AmitDiwan
Updated on 12-Mar-2026 506 Views

To search multiple columns for a row match in MySQL, you can use the UNION operator. UNION combines the result sets of two or more SELECT statements into a single result, automatically removing duplicate rows. This is useful when you want to search different columns for different criteria and merge the results together. Creating the Demo Table Let us first create a table and insert some records − CREATE TABLE DemoTable645 ( Id INT, FirstName VARCHAR(100) ); INSERT INTO DemoTable645 VALUES (100, 'Chris'); INSERT INTO DemoTable645 VALUES (101, 'Robert'); INSERT INTO DemoTable645 ...

Read More
Showing 41–50 of 3,547 articles
« Prev 1 3 4 5 6 7 355 Next »
Advertisements