思路 二分查找,注意如果target不在数组中时,需要判断一下下标 代码 class Solution { public int searchInsert(int[] nums, int target) { //二分查找 int left = 0; int right = nums.length - ...
分类:
其他好文 时间:
2020-07-18 00:42:00
阅读次数:
64
-- sql语句的注意 : 1 以;作为结束符 2 不区分大小写 -- 链接数据库 mysql -uroot -pmysql -- 不显示密码 mysql -uroot -p mysql -- 退出数据库 exit/quti/ctrl + d -- sql语句最后需要有分号;结尾 -- 显示数据库版 ...
分类:
数据库 时间:
2020-07-17 22:32:43
阅读次数:
125
删除一行: CTRL + Y / CTRL + X复制一行: CTRL + D移动整个代码块: CTRL + SHIFT + 上下箭头自动给方法添加注释: 输入 /**,然后回车导入包,自动修正: ALT + ENTER查找类: CTRL + N查找文件: CTRL + SHIFT + N格式化代码 ...
分类:
其他好文 时间:
2020-07-17 22:01:21
阅读次数:
72
一、 创建一张表用于存放抓取到的Running SQL USE [dba_monitor] GO CREATE TABLE [running_sql_monitor]( [id] [int] IDENTITY(1,1) NOT NULL PRIMARY KEY, [Insert_Time] [dat ...
分类:
数据库 时间:
2020-07-17 19:53:10
阅读次数:
107
之前一直以为while 语句只能在函数中执行,今天算是涨知识了. DO $$ DECLARE i INTEGER := 1; identityId BIGINT := 200000000001; BEGIN WHILE i < 100 LOOP identityId = identityId + 1 ...
分类:
其他好文 时间:
2020-07-17 19:32:52
阅读次数:
70
How to Create Multiple lists from CSV File? We can use the combination of CSV and PowerShell to create multiple lists in bulk in SharePoint Online. He ...
分类:
系统相关 时间:
2020-07-17 14:13:50
阅读次数:
83
新建一个test表,三个字段,id,title,uid, id是自增的主键,uid是唯一索引; 插入两条数据: 1 insert into test(title,uid) VALUES ('123465','1001'); 2 insert into test(title,uid) VALUES ( ...
分类:
数据库 时间:
2020-07-17 14:11:01
阅读次数:
79
在网上找了好多,试了都报错,最后发现直接用sysdate可以直接插入 1 cursor.execute("insert into px_jobtype (id, name, classify_id,create_user_id,create_user_name,create_time) values ...
分类:
数据库 时间:
2020-07-17 11:41:07
阅读次数:
101
一,数据库语句 数据库数据是通过DML语句管理数据库数据,包括: INSERT (添加数据语句) UPDATE (更新数据语句) DELETE (删除数据语句) 1:INSERT (添加数据语句) INSERT INTO 表名[(字段1,字段2,字段3,...)] VALUES('值1','值2', ...
分类:
数据库 时间:
2020-07-17 11:30:52
阅读次数:
86
DDL与DML区别 一、DML(data manipulation language)数据操纵语言: DML(data manipulation language)数据操纵语言: 就是我们最经常用到的 SELECT、duUPDATE、INSERT、DELETE。 主要用来对数据库的zhi数据进行一些 ...
分类:
其他好文 时间:
2020-07-16 21:06:56
阅读次数:
58