© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
P. JoyceC and Python Applications https://doi.org/10.1007/978-1-4842-7774-4_3

3. SQL in C

Philip Joyce1  
(1)
Crewe, UK
 

This chapter introduces the reader to the way the database language, Structured Query Language (SQL), can be accessed and used from a C program. It will be demonstrated how to create the database file. When this is done, the reader will be able to create database tables. Then, it will be shown how to insert data into the table, how to amend data in the table, how to delete data from the table, and how to print out data held in the table.

Review of SQL and SQLite

SQL (Structured Query Language) is used to access a database. The easiest way to ...

Get C and Python Applications: Embedding Python Code in C Programs, SQL Methods, and Python Sockets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.