90.1k views
3 votes
In MySQL what is the proper syntax for extracting data from a database?

User Bachmann
by
8.9k points

1 Answer

2 votes

Final answer:

The proper syntax for extracting data from a MySQL database is to use the SELECT statement.

Step-by-step explanation:

In MySQL, the proper syntax for extracting data from a database is to use the SELECT statement. The basic syntax is as follows:

SELECT column_name(s) FROM table_name

Here is an example:

SELECT first_name, last_name FROM students

This statement will retrieve the first and last names of all students from the 'students' table.

User John Marter
by
8.2k points

Related questions

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.