<e>查询:INSERT INTO member_test(mem_no,flag)VALUE('111','1') 错误代码: 1062Duplicate entry '111' for key 'uk_mem_no' 1.创建数据库表演示 CREATE TABLE `member_test` ( ...
分类:
数据库 时间:
2020-07-05 22:57:58
阅读次数:
70
打开 Settings -> Editor -> Inspections -> General 找到 “Duplicated Code ,回取消掉后面的钩钩,然后点击 Apply 即可取消提示。 ...
分类:
其他好文 时间:
2020-07-03 15:51:31
阅读次数:
59
数组中的重复数字 题目描述 Java代码 、import java.util.*; public class Solution { // Parameters: // numbers: an array of integers // length: the length of array numbe ...
分类:
编程语言 时间:
2020-07-03 01:09:01
阅读次数:
81
一:主键索引,唯一索引和普通索引的关系主键索引 主键索引是唯一索引的特殊类型。 数据库表通常有一列或列组合,其值用来唯一标识表中的每一行。该列称为表的主键。 在数据库关系图中为表定义一个主键将自动创建主键索引,主键索引是唯一索引的特殊类型。主键索引要求主键中的每个值是唯一的。当在查询中使用主键索引时 ...
分类:
数据库 时间:
2020-07-01 11:07:09
阅读次数:
80
在上一篇文章《锁的类型以及加锁原理》主要总结了 MySQL 锁的类型和模式以及基本的加锁原理,今天我们就从原理走向实战,分析常见 SQL 语句的加锁场景。了解了这几种场景,相信小伙伴们也能举一反三,灵活地分析真实开发过程中遇到的加锁问题。 如下图所示,数据库的隔离等级,SQL 语句和当前数据库数据会 ...
分类:
数据库 时间:
2020-06-26 18:21:05
阅读次数:
58
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:
其他好文 时间:
2020-06-25 12:23:09
阅读次数:
74
Find the Duplicate Number (M) 题目 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least ...
分类:
其他好文 时间:
2020-06-25 09:20:33
阅读次数:
64
Error Code: 1366. Incorrect string value: '\xE5\xAD\xA6\xE5\xB7\xA5...' 将该表中的每一列的字符集都改为utf-8 SQL语句:alter table dept change loc loc varchar(50) charact ...
分类:
数据库 时间:
2020-06-21 11:24:12
阅读次数:
71
A core element in Flink’s distributed snapshotting are the stream barriers. These barriers are injected into the data stream and flow with the records ...
分类:
其他好文 时间:
2020-06-20 13:41:21
阅读次数:
70
Given a string S, consider all duplicated substrings: (contiguous) substrings of S that occur 2 or more times. (The occurrences may overlap.) Return a ...
分类:
其他好文 时间:
2020-06-20 13:20:54
阅读次数:
43