62
MySQL first function
The MySQL first function is used to return the first value of the selected column. Here, we use limit clause to select first record or more.
Syntax:
MySQL first function example
To SELECT FIRST element:
Consider a table named “officers”, having the following data.
Execute the following query:
Output:
To SELECT FIRST two records
Output:
Next TopicMySQL last