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

User Bachmann
by
9.4k 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.6k points