久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php mysql刪除數(shù)據(jù)庫的語句是什么

      php mysql刪除數(shù)據(jù)庫的語句是“DROP DATABASE”,其具體的刪除方法是:1、通過mysqli_connect函數(shù)連接mysql;2、通過“DROP DATABASE”語句和“mysqli_query”函數(shù)刪除數(shù)據(jù)庫即可。

      php mysql刪除數(shù)據(jù)庫的語句是什么

      本文操作環(huán)境:windows7系統(tǒng)、PHP7.1版、Dell G3電腦。

      php mysql刪除數(shù)據(jù)庫的語句是什么?

      PHP使用 mysqli_query 函數(shù)來創(chuàng)建或者刪除 MySQL 數(shù)據(jù)庫。

      該函數(shù)有兩個(gè)參數(shù),在執(zhí)行成功時(shí)返回 TRUE,否則返回 FALSE。

      語法

      mysqli_query(connection,query,resultmode);

      參數(shù)

      connection 必需。規(guī)定要使用的 MySQL 連接。

      query 必需,規(guī)定查詢字符串。

      resultmode

      可選。一個(gè)常量。可以是下列值中的任意一個(gè):

      MYSQLI_USE_RESULT(如果需要檢索大量數(shù)據(jù),請使用這個(gè))

      MYSQLI_STORE_RESULT(默認(rèn))

      實(shí)例

      以下實(shí)例演示了使用PHP mysqli_query函數(shù)來刪除數(shù)據(jù)庫:

      刪除數(shù)據(jù)庫

      <?php $dbhost = 'localhost';  // mysql服務(wù)器主機(jī)地址 $dbuser = 'root';            // mysql用戶名 $dbpass = '123456';          // mysql用戶名密碼 $conn = mysqli_connect($dbhost, $dbuser, $dbpass); if(! $conn ) {     die('連接失敗: ' . mysqli_error($conn)); } echo '連接成功<br />'; $sql = 'DROP DATABASE RUNOOB'; $retval = mysqli_query( $conn, $sql ); if(! $retval ) {     die('刪除數(shù)據(jù)庫失敗: ' . mysqli_error($conn)); } echo "數(shù)據(jù)庫 RUNOOB 刪除成功n"; mysqli_close($conn); ?>

      執(zhí)行成功后,數(shù)結(jié)果為:

      php mysql刪除數(shù)據(jù)庫的語句是什么

      注意: 在使用PHP腳本刪除數(shù)據(jù)庫時(shí),不會出現(xiàn)確認(rèn)是否刪除信息,會直接刪除指定數(shù)據(jù)庫,所以你在刪除數(shù)據(jù)庫時(shí)要特別小心。

      推薦學(xué)習(xí):《PHP視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號