单选题 在Python中,Python标准数据库接口为( )?

A、 mysql-connector
B、 Python DB-API
C、 MySQLDb
D、 pymysql
下载APP答题
由4l***sp提供 分享 举报 纠错

相关试题

单选题 在Python中,Python中常见的异常不包括

A、ClassNotFoundError
B、IOError
C、ImportError
D、IndexError

单选题 在Python中,下面命令能够正确安装pymysql的是( )?

A、install pymysql
B、pip install pymysql
C、pip pymysql
D、pip install mysql

单选题 在Python中,pymysql中数据库连接对象进行数据提交的方法是什么?

A、commit()
B、cursor()
C、close()
D、connect()

单选题 在Python中,一个事务是一个不可分割的工作单位,事务中包括的诸操作要么都做,要么都不做说的是事务的哪个特性?

A、持久性
B、隔离性
C、一致性
D、原子性

单选题 在Python中,pymysql中批量添加需要调用什么方法?

A、execute()
B、executemany()
C、addmany()
D、manyexecute()

单选题 在Python中,pymysql中获取数据库连接的函数是哪个?

A、connection()
B、conn()
C、connect()
D、getConn()

单选题 在Python中,pymysql中获取游标对象的方法是哪个?

A、begin()
B、commit()
C、execute()
D、cursor()

单选题 在Python中,事务必须是使数据库从一个一致性状态变到另一个一致性状态说的是事务的哪个特性?

A、持久性
B、隔离性
C、一致性
D、原子性