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

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

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

      #進入數(shù)據(jù)庫

      #進入文件夾

      #查看

      #退出文件夾

      #關閉數(shù)據(jù)庫

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

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

       

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

      增:

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

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

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

      刪:

      sql = 'delete from 表名 where 列名 = %s'
      params = (要刪除的行對應列內容,)
      recount = cur.execute(sql,params)

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

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

      改:

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

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

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

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

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