PRAGMA in PL/SQL

Imagine you’re writing a story in your notebook, and sometimes you want to add special notes to yourself or your friend about how to read the story. You might write something like “Don’t worry about the spelling mistakes” or “Read this part very carefully.” In programming, a pragma is a bit like those special notes. It’s a way for the computer to understand special instructions or hints about how to handle your code....

April 16, 2024 · 4 min · Ashwini Shalke

For Beginners EXCEPTION in SQL

Imagine you’re playing a game where you need to catch a ball. Sometimes, you might not catch the ball perfectly, and it might fall to the ground. But instead of giving up, you learn from your mistake and try again. In SQL, exceptions are like errors that occur during a task, but instead of crashing the program, they give you a chance to handle the error and continue with your task....

April 16, 2024 · 2 min · Ashwini Shalke

The differences in SQL

Truncate and Delete: Truncate: Truncate is like clearing the entire table at once. It removes all the rows from a table but keeps the table structure intact. It’s faster than DELETE but doesn’t allow for conditions. TRUNCATE TABLE Students; Delete: Delete removes specific rows from a table based on conditions. It’s slower than TRUNCATE but allows for specifying conditions. DELETE FROM Students WHERE Age > 18; Merge and Insert: Merge: Merge performs an INSERT, UPDATE, or DELETE operation based on the condition provided....

April 16, 2024 · 2 min · Ashwini Shalke