mysql貌似版本变化很大。。。跟着4月的教程视频尝试,结果很多都和视频上说的不一样 1.六大约束 not null 非空 default 默认值 primary key 主键 unique 唯一 check (网上说mysql中没有= =,然而我试了可以。。。) check(sex ='男' or ...
分类:
数据库 时间:
2019-11-04 11:23:01
阅读次数:
90
本篇为Part II:Project Setup 第一步,准备步骤。 准备步骤一,下载.NET Core 3.0 SDK; 官方网址是:https://dot.net (貌似会redirect去https://dotnet.microsoft.com/),选择Download .NET Core 3 ...
一、索引操作 二、简单分析SQL语句及索引 1、Explain命令 用于分析sql语句的执行情况和成本预估 type指标逐渐降低: system>const>eq_ref>ref>fulltext>ref_or_null>index_merge>unique_subquery>index_subqu ...
分类:
数据库 时间:
2019-11-03 10:57:08
阅读次数:
116
原题链接在这里:https://leetcode.com/problems/last-stone-weight-ii/ 题目: We have a collection of rocks, each rock has a positive integer weight. Each turn, we ...
分类:
其他好文 时间:
2019-11-03 10:27:37
阅读次数:
81
题目描述: Given a collection of candidate numbers ( C ) and a target number ( T ), find all unique combinations in C where the candidate numbers sums to T ...
分类:
其他好文 时间:
2019-11-03 01:30:45
阅读次数:
74
题目 给定一个链表,返回链表开始入环的第一个节点。?如果链表无环,则返回?null。 为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链表中的位置(索引从 0 开始)。 如果 pos 是 1,则在该链表中没有环。 说明:不允许修改给定的链表。 来源:力扣(LeetCode) 链接:h ...
分类:
其他好文 时间:
2019-11-03 01:17:40
阅读次数:
111
执行用时 :248 ms, 在所有 python 提交中击败了58.82%的用户 内存消耗 :13.6 MB, 在所有 python 提交中击败了34.65%的用户 ——2019.11.2 ...
分类:
其他好文 时间:
2019-11-02 18:20:04
阅读次数:
86
如题,缩完点后数一下有几个入度为1的scc,+1再/2即可。 教训:加一个cntf处理重边!否则重边会被认为是同一条。 ...
分类:
其他好文 时间:
2019-11-02 16:08:10
阅读次数:
82
387. First Unique Character in a String 用一个freq表建立每个字符和其出现次数的映射,然后按顺序遍历字符串,找到第一个出现次数为1的字符,返回其位置即可,参见代码如下: 注意 383. Ransom Note 同理,用freq表记录magazine的每一个字 ...
分类:
其他好文 时间:
2019-11-02 13:48:11
阅读次数:
98
mysql时间日期函数 now(), current_timestamp(); -- 当前日期时间 current_date(); -- 当前日期 current_time(); -- 当前时间 date('yyyy-mm-dd hh:ii:ss'); -- 获取日期部分 time('yyyy-mm ...
分类:
数据库 时间:
2019-11-02 12:18:26
阅读次数:
99