php如何写删除整个数据库语句呢?大师
程序员文章站
2022-03-19 13:19:43
...
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);
相关文章
相关视频
上一篇: 【推荐】发邮件验证码Jq+Ajax效果