久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      Python中的數(shù)據(jù)庫(kù)解析

      Python中數(shù)據(jù)庫(kù)的使用:

      #進(jìn)入數(shù)據(jù)庫(kù)

      #進(jìn)入文件夾

      #查看

      #退出文件夾

      #關(guān)閉數(shù)據(jù)庫(kù)

      Python中的數(shù)據(jù)庫(kù)解析

      Python中的數(shù)據(jù)庫(kù)解析

       

      數(shù)據(jù)庫(kù)的操作:

      增:

      sql = 'insert into 表名(列名1,列名2) values(%s,%s)'
      params = ('要增加的列1內(nèi)容','要增加的列2內(nèi)容')
      count = cur.execute(sql,params)

      Python中的數(shù)據(jù)庫(kù)解析

      Python中的數(shù)據(jù)庫(kù)解析

      刪:

      sql = 'delete from 表名 where 列名 = %s'
      params = (要?jiǎng)h除的行對(duì)應(yīng)列內(nèi)容,)
      recount = cur.execute(sql,params)

      Python中的數(shù)據(jù)庫(kù)解析

      Python中的數(shù)據(jù)庫(kù)解析

      改:

      sql = 'update 表名 set 列名2 = %s where 列名1 = %s'
      params = ('對(duì)應(yīng)行的列名2下的內(nèi)容','要修改的行中含有的列內(nèi)容')
      recount = cur.execute(sql,params)

      Python中的數(shù)據(jù)庫(kù)解析

      Python中的數(shù)據(jù)庫(kù)解析

      數(shù)據(jù)庫(kù)的回滾:

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