Database Languages and Interfaces
Database Languages and Interfaces
A Database Management System (DBMS) provides tools and languages for defining,
manipulating, and querying data. These tools are divided into database languages for direct
interaction and interfaces for user-friendly access.
Database Languages
INSERT INTO Students (ID, Name, Age, Gender) VALUES (1, 'John', 20, 'Male');
SELECT * FROM Students;
UPDATE Students SET Age = 21 WHERE ID = 1;
DELETE FROM Students WHERE ID = 1;
BEGIN TRANSACTION;
INSERT INTO Students (ID, Name, Age, Gender) VALUES (2, 'Alice', 22, 'Female');
COMMIT;
Database Interfaces
1. Command-Line Interface (CLI)
• Description: Direct interaction with the DBMS using commands.
• Examples:
• MySQL command-line client.
• Oracle SQL*Plus.
2. Graphical User Interface (GUI)
• Description: Provides a user-friendly visual interface for database operations.
• Features:
• Drag-and-drop tools for schema design.
• Query builders for generating SQL queries.
• Examples:
• phpMyAdmin (for MySQL).
• pgAdmin (for PostgreSQL).
3. Application Program Interface (API)
• Description: Enables applications to interact with the database programmatically.
• Examples:
• JDBC (Java Database Connectivity).
• ODBC (Open Database Connectivity).
5. Form-Based Interface
• Description: Provides forms to input, update, or retrieve data.
• Features:
• Simplifies interaction for non-technical users.
• Examples:
• MS Access forms.
7. Web-Based Interface
• Description: Enables database interaction over the web using a browser.
• Examples:
• Online database management systems (e.g., Google Firebase Console).