数据库:Mysql 在使用mybatis的过程中对执行sql的返回值产生疑问,顺手记录一下。 结论: insert: 插入n条记录,返回影响行数n。(n>=1,n为0时实际为插入失败) update:更新n条记录,返回影响行数n。(n>=0) delete: 删除n条记录,返回影响行数n。(n>=0 ...
分类:
数据库 时间:
2020-06-27 21:39:02
阅读次数:
120
using System;using System.Collections.Generic;using System.ComponentModel.Design;using System.Linq;using System.Text;using System.Threading.Tasks; nam ...
分类:
其他好文 时间:
2020-06-27 19:55:37
阅读次数:
73
传送门 很棒的题。 有两个序列a和b,长度都为n,对于a序列需要知道区间的最大值,对于b序列需要知道区间的最小值 求出符合式子 \(max_{i = l}^ra_i = min_{i = l}^rb_i\) 的所有区间个数。 方法很简单,用st表分别维护a序列的最大值的b序列的最小值,明显,a序列的 ...
分类:
其他好文 时间:
2020-06-27 19:49:33
阅读次数:
59
import mysqlconnector from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Integ ...
分类:
数据库 时间:
2020-06-27 16:10:42
阅读次数:
97
首先我们要有城市的json数据 以下以上饶市为例,是上饶市的json数据 {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"adcode":361102,"name":"信州区","center":[11 ...
分类:
其他好文 时间:
2020-06-27 16:04:34
阅读次数:
117
MySQL关系型数据库RDS中的老大哥,增删改查是MySQL入门的基础 增删改查语句增删改查的语句命令为 增:insert删:delete改:update查:SELECT或者show 库操作 创建数据库:create database shujukuba;创建带字符集的数据库:create data ...
分类:
数据库 时间:
2020-06-27 10:11:02
阅读次数:
277
Reverse String (E) 题目 Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space ...
分类:
其他好文 时间:
2020-06-27 10:04:20
阅读次数:
50
MySQL04:使用DQL查询数据 基于MySQL5.7.19版本 使用DQL查询数据 DQL语言 DQL( Data Query Language 数据查询语言 ) 查询数据库数据 , 如SELECT语句 简单的单表查询或多表的复杂查询和嵌套查询 是数据库语言中最核心,最重要的语句 使用频率最高的 ...
分类:
数据库 时间:
2020-06-27 09:46:13
阅读次数:
68
Range Sum Query - Immutable (E) 题目 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Give ...
分类:
其他好文 时间:
2020-06-27 09:44:58
阅读次数:
46
恢复内容开始 Range Sum Query 2D - Immutable (M) 题目 Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left cor ...
分类:
其他好文 时间:
2020-06-27 09:36:59
阅读次数:
61