Retrieving the Single Column Data
we can retrieve the single column’s data that want to fetch and it can be achieved by placing the column name in the place of ” * ” followed by from keyword and the table name.
Syntax:
SELECT COLUMN NAME FROM TABLE NAME;
Example:
let us retrieve the data from the column i.e “first_name” from the students table to achieve that just place the first_name in the place of COLUMN NAME and students in the TABLE NAME that you find in the syntax.
SELECT first_name FROM students;
There in the output you can see the first_name column is fetched and it contains four records.
Output:
SQLite SELECT Query
SQLite is a serverless, popular, easy-to-use, relational database system that is written in c programming language. SQLite is a database engine that is built into all the popular devices that we use every day of our lives including TV, Mobile, and Computer.
As we know that we create the tables in the database and insert the data into them to store the data but, what is the use of storing the data without fetching the data? So let us learn how to retrieve the data from the database. Here comes the SELECT QUERY which is used to fetch the data from the database and in this article we are going to discuss SQLite SELECT Query. After reading this article we will gain knowledge about the Select Query.