这里有两张表TableA和TableB,分别是姓名表和年龄表,用于我们例子的测试数据 TableA id name 1 t1 2 t2 4 t4 TableB id age 1 18 2 20 3 19 在开发中我们的业务需求有时候是复杂的,多张表联合查询的时候是有多种方式的,面对不同的需求, 灵活 ...
分类:
数据库 时间:
2020-06-09 16:14:05
阅读次数:
180
创建数据库[BCVote].[dbo].[m_vote_record] 的索引 名称为m_vote_recordIPIndex CREATE INDEX m_vote_recordIPIndexON [BCVote].[dbo].[m_vote_record] (ip) 查询数据库中的所有索引 SE ...
分类:
数据库 时间:
2020-06-09 14:41:33
阅读次数:
472
前序遍历NLR:前序遍历(PreorderTraversal)又叫先序遍历。遍历顺序为:根节点—>左子树—>右子树,所以上图前序遍历的结果为ABDECFG代码实现:publicvoidprevOrder(TreeNoderoot){//递归方式if(root==null){return;}System.out.print(root.val);prevOrder(root.left);p
分类:
其他好文 时间:
2020-06-09 09:34:36
阅读次数:
55
一 Mac 1 文本编辑 光标移动 Ctrl+A (Ahead 行首) Ctrl+E (End 行尾) Ctrl+P (Previous 上一行) Ctrl+N (Next 下一行) Ctrl+B (Backward 左移一个字符) Ctrl+F (Forward 右移一个字符) Opt+Left ...
分类:
其他好文 时间:
2020-06-08 20:38:31
阅读次数:
81
一、使用线程的join方法 二、使用主线程的join方法 三、使用线程的wait方法 四、使用线程的线程池方法 五、使用线程的Condition(条件变量)方法 六、使用线程的CountDownLatch(倒计数)方法 七、使用线程的CyclicBarrier(回环栅栏)方法 八、使用线程的Sema ...
分类:
编程语言 时间:
2020-06-08 19:23:55
阅读次数:
63
数据库连接方式 Spring.datasource.url=jdbc:mysql://location/mydb Spring.datasource.username=root Spring.datasource.password= 显示数据库:show databases; 创建数据库:creat ...
分类:
数据库 时间:
2020-06-08 19:23:03
阅读次数:
89
\(\frac{a^2+b^2}{2}\ge\left(\frac{a+b}{2}\right)^2\ge ab\;\left(a,b\in\mathbb{R}\right)\) \(\sqrt{\frac{a^2+b^2}{2}}\ge\frac{a+b}{2}\ge\sqrt{ab}\;\lef ...
分类:
其他好文 时间:
2020-06-08 19:14:58
阅读次数:
61
一 线程Thread的使用 (1)不通过委托,直接在线程里实现方法体 namespace ConsoleApplication1{ class Program { static void Main(string[] args) { bool a =false; bool b = false; boo ...
分类:
编程语言 时间:
2020-06-08 10:51:12
阅读次数:
69
数据访问DAL和实体类 UserInfo.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ...
For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. A binary tree X is flip e ...
分类:
其他好文 时间:
2020-06-08 00:23:38
阅读次数:
49