Liste des Groupes | Revenir à co vms |
On Mon, 7 Jul 2025 14:07:31 -0400, Arne Vajhøj wrote:Not really.Embedded SQL is a thing or was a thing 30-40-50 years ago.OK, so it was a horrible nonstandard hack invented for programming
>
Basically you write source code with SQL statements prefixed by EXEC
SQL, put it through a pre-compiler to get valid code in whatever
language (Cobol, PL/I, C or whatever).
languages like COBOL, which didn’t have the best ability to deal with
dynamic strings, to make it easier for them to compose SQL statements.
And the horribleness of it is reinforced by your statement that you needEmbedded SQL (except for Java) expect sever side cursors. Just
server-side cursors in the DBMS to make this hack a little less difficult
to work with.
Not sure why it would be needed for PL/I, or even C.The benefits really apply to those just as well as Cobol.
I’ve pointed out before, the irony of COBOL being designed strictly forCobol access relational databases fine. Probably because dynamic
“business” needs, yet within a couple of decades of its widespread
adoption, SQL databases became an important “business” need, but the best
way of interfacing to them (using dynamic string manipulation mechanisms)
had been omitted from COBOL because it wasn’t seen as a “business” need.
Les messages affichés proviennent d'usenet.