php如何写删除整个数据库语句呢?大师
程序员文章站
2022-06-08 12:46:48
...
php怎么写删除整个数据库语句呢?请教各位大师!
$hostnames = 'localhost';
$userids = 'root';
$passwords = '123456';
$database = '213';
$conn = mysql_connect($hostnames,$userids,$passwords);
mysql_select_db($database,$conn);
$sql = "drop database `213`";
mysql_close($conn);
------解决方案--------------------
$conn = mysql_connect($hostnames,$userids,$passwords);
mysql_select_db($database,$conn);
mysql_query("drop database `213`");
mysql_close($conn);
$hostnames = 'localhost';
$userids = 'root';
$passwords = '123456';
$database = '213';
$conn = mysql_connect($hostnames,$userids,$passwords);
mysql_select_db($database,$conn);
$sql = "drop database `213`";
mysql_close($conn);
------解决方案--------------------
$conn = mysql_connect($hostnames,$userids,$passwords);
mysql_select_db($database,$conn);
mysql_query("drop database `213`");
mysql_close($conn);
相关文章
相关视频