mysql怎么删除表命令 mysql删除表语句( 二 )


例子:
html
head
titleCreating
MySQL
Tables
-by
;/title
/head
body
?php
$dbhost
=
'localhost:3036';
$dbuser
=
'root';
$dbpass
=
'rootpassword';
$conn
=
mysql_connect($dbhost,
$dbuser,
$dbpass);
if(!
$conn
)
{
die('Could
not
connect:
'
.
mysql_error());
}
echo
'Connected
successfullybr
/';
$sql
=
"DROP
TABLE
tutorials_tbl";
mysql_select_db(
'TUTORIALS'
);
$retval
=
mysql_query(
$sql,
$conn
);
if(!
$retval
)
{
die('Could
not
delete
table:
'
.
mysql_error());
}
echo
"Table
deleted
successfully\n";
mysql_close($conn);
?
/body
/html
【mysql怎么删除表命令 mysql删除表语句】mysql怎么删除表命令的介绍就聊到这里吧,感谢你花时间阅读本站内容 , 更多关于mysql删除表语句、mysql怎么删除表命令的信息别忘了在本站进行查找喔 。

推荐阅读