مقدمة في PL/SQL

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

ما هي اللغة البرمجية التي تمثل PL/SQL؟

  • لغة برمجة سطحية
  • لغة برمجة غير إجرائية
  • لغة برمجة نصية
  • لغة برمجة إجرائية (correct)

SQL هي لغة برمجة إجرائية.

False (B)

اشرح الحاجة إلى PL/SQL.

PL/SQL تعالج القيود الموجودة في SQL.

PL/SQL هي لغة برمجة __________.

<p>إجرائية</p> Signup and view all the answers

قم بربط الخصائص التالية مع اللغات المناسبة:

<p>PL/SQL = لغة برمجة إجرائية SQL = لغة برمجة غير إجرائية Third-generation programming = PL/SQL Fourth-generation programming = SQL</p> Signup and view all the answers

ما هي الفروق بين SQL و PL/SQL؟

<p>PL/SQL تجمع بين منطق البرنامج وتدفق التحكم مع SQL (A)</p> Signup and view all the answers

PL/SQL هو معيار تم وضعه من قبل ANSI.

<p>False (B)</p> Signup and view all the answers

اذكر أحد القيود الرئيسية لـ SQL.

<p>لا يمكن تعديل بيانات بطريقة شرطية.</p> Signup and view all the answers

استعمال الدالة UPDATE لتحديث معلومات ______.

<p>job_id</p> Signup and view all the answers

شحال من جملة SQL تحتاج تكتب لتحديث job_id؟

<p>واحد</p> Signup and view all the answers

Flashcards

قيود SQL

حدود قدرات لغة الاستعلام الهيكلية (SQL) في تحديث البيانات، خاصة في عمليات التحديث الكثيرة، حيث تتطلب أكثر من سؤال SQL لتحديث سجلات متعددة.

تحديث بيانات الوظائف

تعديل حقل job_id في جدول الموظفين ليُصبح SR_SA_REP , SR_ST_CLERK للموظفين الذين يفيّضون ببعض الشروط.

موظفي المبيعات

فئة من الموظفين المختصين بعمليات البيع.

موظفي التسويق

فئة من الموظفين المختصين بعمليات التسويق.

Signup and view all the flashcards

موظفي المخازن

فئة من الموظفين المختصين بعمليات إدارة المخازن.

Signup and view all the flashcards

تاريخ التوظيف

تاريخ توظيف الموظف في الشركة.

Signup and view all the flashcards

رقم تعريف الموظف

رقم فريد يميز كل موظف في البيانات.

Signup and view all the flashcards

تحديث SQL

تحديث بيانات جدوال الموظفين

Signup and view all the flashcards

لغة البرمجة PL/SQL

لغة برمجة علائقية خاصة بـ Oracle تُوسع SQL بإضافة منطق وقواعد التحكم بالبرنامج.

Signup and view all the flashcards

لغة البرمجة SQL

لغة غير إجراءتية (إعلانية) تُستخدم للوصول والتحكم في البيانات في قواعد البيانات العلائقية.

Signup and view all the flashcards

الفرق بين PL/SQL و SQL

PL/SQL لغة إجراءتية، بينما SQL غير إجراءتية. PL/SQL تُوسع SQL بمنطق البرمجة.

Signup and view all the flashcards

حاجة لـ PL/SQL

SQL تواجه قيودًا في التعامل مع البيانات بصورة شرطية. PL/SQL تُعالج هذه القيود.

Signup and view all the flashcards

لغة البرمجة الجيلية الثالثة (3GL)

نوع من لغات البرمجة القريبة من لغة الإنسان.

Signup and view all the flashcards

لغة البرمجة الجيلية الرابعة (4GL)

نوع من لغات البرمجة أسهل من 3GL.

Signup and view all the flashcards

البيانات الشرطية

معالجة البيانات بناءً على شروط معينة.

Signup and view all the flashcards

البيانات المُعقدة

تُشير إلى البيانات التي تحتاج إلى منطق برمجي أكثر تعقيدًا.

Signup and view all the flashcards

Study Notes

Introduction to PL/SQL

  • PL/SQL is Oracle Corporation's procedural programming language for relational databases.
  • It extends SQL with procedural logic.
  • PL/SQL is a third-generation programming language (3GL).
  • PL/SQL combines program logic and control flow with SQL.
  • PL/SQL is a standard and portable language for Oracle development.
  • It's also a high-performance, highly integrated database language.

Objectives

  • Describe PL/SQL.
  • Differentiate between SQL and PL/SQL.
  • Explain the need for PL/SQL.

Purpose

  • To describe the characteristics of PL/SQL and the differences between PL/SQL and SQL.
  • To learn how PL/SQL addresses the limitations SQL. This helps understanding the necessity of PL/SQL.

PL/SQL Description

  • A procedural language extension to SQL.
  • An Oracle proprietary programming language.
  • Combines program logic and control flow with SQL.

SQL Description

  • A nonprocedural language.
  • Also known as a declarative language.
  • A fourth-generation programming language (4GL).
  • Primarily used to access and modify data in relational databases.
  • Standardized by the American National Standards Institute (ANSI).
  • Vendors (like Oracle) might include proprietary SQL features in database environments.

SQL Statement

  • A simple, straightforward SQL statement.
  • Modifying data conditionally in SQL can have limitations.
  • Can't easily update data in conditional manners.

Limitations of SQL

  • Difficulty with conditional data modifications
  • Promoting employees based on tenure and job type.
  • Needs multiple SQL statements for each type of job updates , making the task tedious.

Limitations of SQL (Solution)

  • One solution for updating job_id data is shown.
  • To update multiple job_ids you will need multiple SQL statements.

PL/SQL Extends SQL with Procedural Logic

  • Write one statement (PL/SQL) to promote sales representatives, marketing representatives, and stock clerks.
  • PL/SQL makes it possible to write one statement to complete a task.

Procedural Constructs

  • Use PL/SQL to write procedural code and embed SQL statements.
  • Procedural code includes variables, constants, cursors, conditional logic, and iteration.
  • PL/SQL code blocks can be saved and named, then executed when needed.

Characteristics of PL/SQL

  • Highly structured, readable, and accessible language.
  • Standard and portable language for Oracle development.
  • Works with SQL as an embedded language.
  • High-performance, highly integrated database language.
  • Based on the Ada Programming Language with syntax similarities.

Terminology

  • Key terms in the lesson: PL/SQL, Procedural Constructs.

Summary

  • Learned to describe PL/SQL.
  • Differentiated between SQL and PL/SQL.
  • Explained the need for PL/SQL.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

PL/SQL Introduction PDF

More Like This

PL/SQL Composite Data Types Quiz
10 questions
Tema 24. PL/SQL en Oracle
30 questions
PL/SQL Programming Language
5 questions

PL/SQL Programming Language

RetractableSine8681 avatar
RetractableSine8681
Use Quizgecko on...
Browser
Browser