av激情亚洲男人的天堂国语,日韩欧美精品一中文字幕,无码av一区二区三区无码,国产又色又爽又刺激的a片,国产又色又爽又刺激的a片

MySQLSQL數(shù)據(jù)庫清空代碼清空

以下的文章主要介紹的是MySQLSQL數(shù)據(jù)庫清空代碼 _php 清空mysql asp的實(shí)際操作情況,本文主要講述的是access或是mssql 2009-10-14 17:34asp 代碼的詳細(xì)解析,希望會(huì)給你帶來一些幫助在此方面。

成都創(chuàng)新互聯(lián)公司-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價(jià)比六合網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式六合網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋六合地區(qū)。費(fèi)用合理售后完善,10年實(shí)體公司更值得信賴。

復(fù)制代碼 代碼如下:

 
 
 
  1. <% 
  2. Dim Rs,Conn 
  3. Set Conn=Server.CreateObject("Adodb.Connection") 
  4. Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.mappath("readlog.mdb") 
  5. Set Rs=Conn.OpenSchema(20) 
  6. Do While not Rs.Eof 
  7. If Ucase(Rs("TABLE_TYPE"))="TABLE" Then '

如果是用戶表

 
 
 
  1. Conn.Execute("Drop Table "&Rs("TABLE_NAME")&"") 
  2. End If 
  3. Rs.MoveNext 
  4. Loop 
  5. Response.Write "成功!" 
  6. Rs.Close 
  7. Set Rs=Nothing 
  8. Conn.Close 
  9. Set Conn=Nothing 
  10. %>

php清空mysql

MySQLSQL數(shù)據(jù)庫;復(fù)制代碼 代碼如下:

 
 
 
  1. $user = "readlog.cn";//賬號(hào) 
  2. $password = "readlog.cn";//密碼 
  3. $dbname = "readlog";//數(shù)據(jù)庫 
  4. $link = mysql_connect("localhost:3306",$user,$password); 
  5. mysql_select_db("$dbname",$link); 
  6. echo "

    正在清空數(shù)據(jù)庫..."; 

  7. $result=mysql_query("SHOW tables",$link); 
  8. while ($currow=mysql_fetch_array($result)); 
  9. mysql_query("DROP TABLE IF EXISTS $currow[0]"); 
  10. echo "成功!"; 
  11. ?>

asp清空mssql

復(fù)制代碼 代碼如下:

 
 
 
  1. <% 
  2. Dim Rs,Conn 
  3. Set Conn=Server.CreateObject("Adodb.Connection") 
  4. Conn.Open "Provider=Sqloledb; User ID=readlog.cn; Password=readlog.cn; Initial Catalog =readlog; Data Source=(local);" 
  5. Set Rs=Conn.Execute("Select name from sysobjects Where xtype=char(85) order by id") 
  6. Do While Not Rs.Eof 
  7. Conn.Execute("drop table table "&rs(0)&"") 
  8. Rs.movenext 
  9. loop 
  10. Response.Write "成功!" 
  11. Rs.Close 
  12. Set Rs=Nothing 
  13. Conn.Close 
  14. Set Conn=Nothing 
  15. %>

以上的相關(guān)內(nèi)容就是對(duì)MySQLSQL數(shù)據(jù)庫清空代碼的介紹,望你能有所收獲。


本文題目:MySQLSQL數(shù)據(jù)庫清空代碼清空
URL地址:http://uogjgqi.cn/article/djpppjc.html
掃二維碼與項(xiàng)目經(jīng)理溝通

我們?cè)谖⑿派?4小時(shí)期待你的聲音

解答本文疑問/技術(shù)咨詢/運(yùn)營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流