本节重点: pymysql的下载和使用 execute()之sql注入 增、删、改:conn.commit() 查:fetchone、fetchmany、fetchall 一、pymysql的下载和使用 之前我们都是通过MySQL自带的命令行客户端工具mysql来操作数据库,那如何在python程序 ...
分类:
数据库 时间:
2018-11-01 01:00:13
阅读次数:
193
result = session.execute('insert into ***') session.commit() last_insert_id = result.lastrowid 注意:如果存在多个用户操作数据库,应保持每个用户或者每个请求线程拥有各自隔离的session https:// ...
分类:
数据库 时间:
2018-11-01 00:56:24
阅读次数:
406
models execute via view: ...
分类:
其他好文 时间:
2018-11-01 00:51:18
阅读次数:
189
1.根据本地仓库中的jar包判断需要配置成哪个版本的,在pom.xml相应版本的配置 2. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on ...
分类:
其他好文 时间:
2018-10-31 20:16:54
阅读次数:
151
1 # coding=utf-8 2 import re 3 import os 4 import commands 5 import json 6 import psutil 7 from pyExcelerator import * 8 9 10 def execute(cmd): 11 sta... ...
分类:
系统相关 时间:
2018-10-30 17:33:07
阅读次数:
254
1 # coding=utf-8 2 import os 3 import commands 4 import re 5 from pyExcelerator import * 6 7 8 def execute(cmd): 9 status, output = commands.getstatus... ...
分类:
其他好文 时间:
2018-10-30 17:29:14
阅读次数:
143
PXE简绍 PXE(preboot execute environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由此支持通过网络启动操作系统,在启动过程中,终端要求服务器分配IP地址,再用TFTP(t ...
分类:
其他好文 时间:
2018-10-28 16:17:27
阅读次数:
254
mysqldump命令mysqldump -h x.x.x.x -u root -p dbname > db.sql;1错误提示mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of ...
分类:
数据库 时间:
2018-10-28 16:01:17
阅读次数:
213
init简要 init是Android上启动的第一个用户态进程。 执行序列是: start_kernel() -> rest_init() -> kernel_init() -> init_post() -> run_init_process() ramdisk_execute_command是内核 ...
分类:
移动开发 时间:
2018-10-28 00:52:47
阅读次数:
248
Could not execute command ‘sassc
分类:
其他好文 时间:
2018-10-25 19:46:19
阅读次数:
444