Differences between languages

What are the major differences between database languages (sql, oracle) and C++/java?
You can't really compare SQL and any of the traditional programming languages. For example it's not possible to create a standalone program in SQL, it will only run within the confines of a database server and then only on one which contains a database with the correct structure.
 
Basically SQL is a declarative query language, its not turing complete either... Where C++/Java are Imperative and are. Syntactically and Semantically SQL is very different from C++/Java.

In theory I suppose you could create a standalone program in SQL if you wrote a compiler/interpreter for it... :| Though you would have to extend the base language to support some constructs (Like hmm, T-SQL/P-SQL which are turing complete).
 
Last edited:
Basically SQL is a declarative query language, its not turing complete either... Where C++/Java are Imperative and are. Syntactically and Semantically SQL is very different from C++/Java.

In theory I suppose you could create a standalone program in SQL if you wrote a compiler/interpreter for it... :| Though you would have to extend the base language to support some constructs (Like hmm, T-SQL/P-SQL which are turing complete).
^ perfect post.
 
Back
Top Bottom