الخميس، 6 سبتمبر 2018

Java 8 Lambda Expressions with examples and Rules

Introduction:


Java 8 is first released in 2014 and introduced lot of new features. Lambda expressions are the most significant change in java 8 version.
As of java 7, Oracle/Sun people have given importance to the object oriented programming languages but in java 8, they have introduced functional programming to compete with other programming languages such as Scala, C# etc.




Java 8 Lambda Expressions with examples and Rules


What is Lambda Expression?


Any function which is having no name is called as Lambda expression. Which is also called as anonymous function.


Rules:


1) function should not have access modifier
2) Should not have any return type (even void also not allowed)
3) Should not have name for function
4) Should use arrow symbol "->"

We will see now a few examples how to convert normal java fucntions to lambda expression.

الأربعاء، 5 سبتمبر 2018

How to List All Tables, Describe in Oracle, MySQL, DB2 and PostgreSQL

 In this tutorial, We will learn how to connect, list all tables in Oracle, MySQL, DB2, PostgreSQL and describe tables in Oracle,  MySQL, DB2 and PostgreSQL.

oracle and mysql all_tables examples

show all tables MySQL, show all tables in oracle, show all tables Postgres, show all tables, show all tables in database SQL, show all tables SQLite, show all tables in a database, show all tables in Cassandra, show all tables in hive, show all tables in schema Postgres, show all tables SQL, show all tables and columns MySQL

 You often want to list all tables in a database or list columns in a table. Obviously, every database has its own syntax to list the tables and columns. Well, this post placed all most popular databases.