3 ms·
A SQL engine can use any method it wants to execute a query. For instance if you wanted to make a SQL engine that lets you write a SELECT on tables that are cs
by PaulHoule 4y ago
A SQL engine can use any method it wants to execute a query.
For instance if you wanted to make a SQL engine that lets you write a SELECT on tables that are csv files that writes a C program and then compiles it with a C compiler that's up to you.
In particular a SQL engine can compile stored procedures ahead of time and back in the day I worked at a few places that put "business logic" into SQL procedures, that is, 100% of the SQL access is done through stored procedures, the same way that many web applications define a front end in Java or Node that exposes data to a Javascript front end.
If you build an app that way you can put a SQL specialist in charge of the SQL interface and also know the application is immune to SQL injection attacks.