当前位置:网站首页>PHP MySQL Where clause

PHP MySQL Where clause

2023-01-19 15:32:17T0620514

WHERE clause is used to filter records.


WHERE clause

The WHERE clause is used to extract records that meet specified criteria.

Grammar

SELECT column_name(s)FROM table_nameWHERE column_name operator value

To learn more about SQL, visit our SQL Tutorial.

In order for PHP to execute the above statement, we must use the mysqli_query() function.This function is used to send queries or commands to a MySQL connection.

Example

The following example will select all rows from the "Persons" table where FirstName='Peter':

";}?>

The above code will output:

Peter Griffin
原网站

版权声明
本文为[T0620514]所创,转载请带上原文链接,感谢
https://chowdera.com/2023/019/202301191525102653.html

随机推荐