久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      怎么判斷mysql數(shù)據(jù)庫(kù)是否存在

      方法:1、用“show databases like '數(shù)據(jù)庫(kù)名稱'”語句判斷;2、用“SELECT * FROM information_schema.SCHEMATA WHERE SCHEMA_NAME = '數(shù)據(jù)庫(kù)名稱'”語句判斷。

      怎么判斷mysql數(shù)據(jù)庫(kù)是否存在

      本教程操作環(huán)境:windows10系統(tǒng)、mysql8.0.22版本、Dell G3電腦。

      怎么判斷mysql數(shù)據(jù)庫(kù)是否存在

      1、MySQL 判斷表和數(shù)據(jù)庫(kù)是否存在

      SHOW TABLES LIKE SHOW TABLES LIKE '%wp_order%';

      怎么判斷mysql數(shù)據(jù)庫(kù)是否存在

      TABLE_SCHEMA 和 TABLE_NAME

      select TABLE_NAME from INFORMATION_SCHEMA.TABLES where  TABLE_SCHEMA='dbname' and TABLE_NAME='tablename';

      怎么判斷mysql數(shù)據(jù)庫(kù)是否存在

      如果單純顯示是否存在數(shù)據(jù)庫(kù), 則可用

      show databases like 'db_name';

      單純顯示是否存在數(shù)據(jù)表, 則可用

      show tables like 'table_name';

      如果名稱為“dbname”的數(shù)據(jù)庫(kù)不存在,則會(huì)得到一個(gè)空集。 如果確實(shí)存在,則會(huì)得到一行。

      2、SELECT * FROM語句

      SELECT * FROM information_schema.SCHEMATA  WHERE SCHEMA_NAME = '數(shù)據(jù)庫(kù)名稱';

      推薦學(xué)習(xí):mysql視頻教程

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