摘要: 1.若是不知道里面有什么表,先执行下面 import sqlite3 #先查看里面有哪些表 conn = sqlite3.connect("data/20201207.db") cursor = conn.cursor() sql = """select * from sqlite_master w 阅读全文
posted @ 2021-03-10 16:53 简单音乐 阅读(3032) 评论(0) 推荐(0)
摘要: import pandas as pd import pyodbc # 文件路径及文件名 mdb_file = r'E:\资料房2 - 副本.mdb' driver = '{Microsoft Access Driver (*.mdb, *.accdb)}' cnxn = pyodbc.connec 阅读全文
posted @ 2021-03-10 15:02 简单音乐 阅读(1699) 评论(2) 推荐(0)
摘要: 说明:userInfo 是mongodb某一库(eg:data_test)中的文档,所以使用查询之前一定要进入这个数据库里面,(use data_test) 1、查询所有记录db.userInfo.find();相当于:select* from userInfo; 2、查询去掉后的当前聚集集合中的某 阅读全文
posted @ 2021-03-10 10:50 简单音乐 阅读(118) 评论(0) 推荐(0)