Create a new PDF for SQL short notes
Create a new PDF for SQL short notes
pdf_sql = PDF()
pdf_sql.add_page()
sql_content = """
1. Introduction to SQL:
SQL (Structured Query Language) is used to manage and manipulate relational databases.
4. Creating a Table:
Name VARCHAR(50),
Age INT
);
5. Inserting Data:
INSERT INTO Students (ID, Name, Age) VALUES (1, 'Alice', 20);
6. Retrieving Data:
8. Deleting Data:
9. Filtering Data:
Example:
FROM Students
14. Constraints:
"""
pdf_sql.chapter_body(sql_content)
# Save PDF
sql_pdf_path = "/mnt/data/SQL_Short_Notes.pdf"
pdf_sql.output(sql_pdf_path)
sql_pdf_path