2.2Database Languages
A data sublanguage consists of two parts: a Data Definition Language (DDL) and a
Data Manipulation Language (DML). The DDL is used to specify the database schema
and the DML is used to both read and update the database. These languages are called
data sublanguages because they do not include constructs for all computing needs such
as conditional or iterative statements, which are provided by the high-level programming
languages. Many DBMSs have a facility for embedding the sublanguage in a high-level
programming language such as COBOL, Fortran, Pascal, Ada, ‘C’, C, Java, or Visual
Basic. In this case, the high-level language is sometimes referred to as the host language.
To compile the embedded file, the commands in the data sublanguage are first removed
from the host-language program and replaced by function calls. The pre-processed file
is then compiled, placed in an object module, linked with a DBMS-specific library containing
the replaced functions, and executed when required. Most data sublanguages
also provide non-embedded, or interactive, commands that can be input directly from a
terminal.
2.2Database ภาษา
sublanguage ข้อมูลประกอบด้วยสองส่วนคือภาษานิยามข้อมูล (DDL) และ
ภาษาการจัดการข้อมูล (DML) DDL จะใช้ในการระบุคีมาฐานข้อมูล
และดราก้อนจะใช้ในการทั้งการอ่านและการปรับปรุงฐานข้อมูล ภาษาเหล่านี้จะถูกเรียกว่า
sublanguages ข้อมูลเพราะพวกเขาไม่ได้รวมไปถึงการสร้างสำหรับทุกความต้องการการประมวลผลดังกล่าว
เป็นงบเงื่อนไขหรือซ้ำที่มีให้โดยโปรแกรมระดับสูง
ภาษา DBMSs หลายแห่งมีสิ่งอำนวยความสะดวกสำหรับการฝัง sublanguage ในระดับสูง
การเขียนโปรแกรมภาษาเช่นภาษาโคบอล, Fortran, ปาสคาล, อาดา, 'C', C , Java, หรือ Visual
Basic ในกรณีนี้ภาษาระดับสูงเป็นบางครั้งเรียกว่าภาษาเป็นเจ้าภาพ
ในการรวบรวมไฟล์ฝังตัวคำสั่งใน sublanguage ข้อมูลจะถูกลบออกเป็นครั้งแรก
จากโปรแกรมภาษาโฮสต์และถูกแทนที่ด้วยฟังก์ชั่นการโทร ไฟล์ก่อนดำเนินการ
จะรวบรวมแล้ววางไว้ในโมดูลวัตถุที่เชื่อมโยงกับห้องสมุด DBMS เฉพาะที่มี
ฟังก์ชั่นการเปลี่ยนและดำเนินการเมื่อจำเป็น ส่วนใหญ่ sublanguages ข้อมูล
ยังให้ไม่ฝังตัวหรือการโต้ตอบและคำสั่งที่สามารถนำเข้าโดยตรงจาก
สถานี
การแปล กรุณารอสักครู่..
