Home >Backend Development >PHP Tutorial >Which PHP function is used to delete existing database?

Which PHP function is used to delete existing database?

王林
王林forward
2023-09-07 13:13:021301browse

Which PHP function is used to delete existing database?

PHP uses the mysql_query function to delete the MySQL database. This function takes two parameters and returns TRUE on success and FALSE on failure. Its syntax is as follows -

Syntax

bool mysql_query( sql, connection );

Following are the parameters used in the function -

gentlemen. no.

Parameters and description

1 Required

SQL query to delete MySQL database

2

Optional

If not specified, the last opened connection by mysql_connect will be used.

The above is the detailed content of Which PHP function is used to delete existing database?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete