0 votes
in Sql by
What is a Query?

1 Answer

0 votes
by

A query is a request for data or information from a database table or combination of tables. A database query can be either a select query or an action query.

SELECT fname, lname /* select query */

FROM myDb.students

WHERE student_id = 1;

UPDATE myDB.students /* action query */

SET fname = 'Captain', lname = 'America'

WHERE student_id = 1;

Related questions

0 votes
0 votes
asked Jun 12, 2023 in Sql by Robin
0 votes
asked Nov 8, 2021 in Sql by rajeshsharma
0 votes
asked Jul 10, 2020 in Sql by SakshiSharma
...