Python PostgreSQL – Where Clause
In this article, we are going to see how to use the Where clause in PostgreSQL using Psycopg2 in Python.
Where Clauses help us to easily deal with the databases. As we know we have a huge amount of data stored in our database, so extracting only useful and required information clauses is helpful. The WHERE clause is used to extract only those records that fulfill a required condition.
Syntax: SELECT column1, column2, ….. FROM table_name WHERE condition
Table demonstration with where clause:
Example: At first, here we have shown how to create a table and then to insert values in it.
My Personal Notes arrow_drop_up
Please Login to comment...