Database Systems - Programming Languages and Database Programming - Imperative vs Declarative
There are 2 main types of programming languages
Imperative languages – They tell what and how when programming. They follow control flow logic such as branching or loops, to determine the execution order. They use compilers to translate the code you write into low-level machine code or bytecode. There are 2 types of imperative languages.
procedural such as C or COBOL which are made up of functions or subroutines.
object-oriented, such as Java or Python, can stores data in object types, which have data and methods
Declarative languages – They tell what, but not how, when programming. Logical expressions determine what results are processed, and they don’t have control-flow statements. Instead of compilers, they use optimizers to help speed up statement execution time. SQL is the most popular declarative language.
Database programming
Database queries are mostly written in SQL, a declarative language, because it is easier than imperative languages. You can write complex queries with a single query, as opposed to lengthy code to write conditional statements. The optimizer also makes it faster. Developing applications with both SQL and any programing language like Java or Python is called database programming.
Database programming requires developers to get used to the SQL syntax as it is much different than programming language code like Java or Python. While these programming languages need loops and complex conditions to get results output, SQL can do the same with a single SQL statement.
Database programming techniques
To help simplify database programming, there are a few techniques:
Embedded SQL – lets you to add SQL statements directly in your program. For example , Oracle has Pro*C, which is an embedded SQL in C. It is not widely used because it’s difficult to use with OOP languages, requires a different compiler, and it increases network traffic.
Procedural SQL(PL/SQL) – extends SQL with control-flow statements. It’s mostly used for database applications. Procedural has more advantages than embedded, but is not as widely used as an API.
API (application programming interface) – a code library that contains all kinds of database functions that you can use in your programs. For example, Java has JDBC to make connecting and updating a database easier.
Subscribe to Appficial for more programming videos coming soon. Also, don't forget to click LIKE and comment on the video if it helped you out!
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Database Systems - Programming Languages and Database Programming - Imperative vs Declarative», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.