从效率来看: 1): select * from T1 where exists(select 1 from T2 where T1.a=T2.a) T1数据量小而T2数据量非常大时,T1 << T2时,1):的查询效率高 2): select * from T1 where T1.a in (se ...
分类:
其他好文 时间:
2020-07-28 14:07:55
阅读次数:
62
if not exists(select * from sys.columns where [object_id] = object_id('szydytglhyytb') and name = 'SZYDYTGLHYYTB_HYBM') BEGINalter table szydytglhyytb ...
分类:
其他好文 时间:
2020-07-28 13:54:54
阅读次数:
56
题目描述 Roundgod is given n,k,construct a permutation P of 1~n satisfying that for all integers i in [1,n],there exists a contiguous subarray in P of len ...
分类:
其他好文 时间:
2020-07-28 00:18:40
阅读次数:
75
数据准备: drop table if exists t1; /* 如果表t1存在则删除表t1 */ CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` int(11) DEFAULT NULL, `b` int(11) NOT ...
分类:
其他好文 时间:
2020-07-28 00:03:44
阅读次数:
96
最近项目在用mysql语句 指定非空,默认值为空字符串 NOT NULL DEFAULT '' 建表 CREATE TABLE IF NOT EXISTS `ims_test` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT ,`sid` int(11 ...
分类:
数据库 时间:
2020-07-27 23:47:51
阅读次数:
81
一、单个键管理针对单个键的命令,有type、del、object,exists,expire等,下面介绍几个重要的键的重命名Renamekeynewkey192.168.1.10:6379>setpythonjedisOK192.168.1.10:6379>getpython"jedis"192.168.1.10:6379>renamepythonjavaOK192.168.1.
分类:
其他好文 时间:
2020-07-27 10:01:46
阅读次数:
84
原文地址: https://blog.csdn.net/xiushuiguande/article/details/79476964 实验数据 CREATE DATABASE IF NOT EXISTS SQL50; USE SQL50; CREATE TABLE Student(sid VARCH ...
分类:
数据库 时间:
2020-07-26 19:39:24
阅读次数:
86
避免中文乱码 redis-cli --raw(但是这样会不显示前面的序号) 设置一个key :set name gsl 获取key: get name 判断是否存在key: EXISTS name 查看所有key: keys * 移动元素到指定的库:move phone 2 (移动phone到第二个 ...
分类:
其他好文 时间:
2020-07-26 01:03:06
阅读次数:
59
1.为什么使用小表驱动大表 小表驱动大表,小的数据集驱动大的数据集 因为连接比较消耗时间 所以,小表写在先查询的地方 select * from employee where id in (select id from department) 2.exists select * from emplo ...
分类:
其他好文 时间:
2020-07-26 00:48:54
阅读次数:
72
这个问题其实困扰了挺久的,一直没闲情去解决,网上搜索过很多压缩方法感觉都太麻烦太复杂,因最近在windows上搞docker就一并解决了。 压缩vmdk 首先下载DiskGenius,这工具很牛X,相信很多人都用过其硬盘分区、合并、数据恢复等功能,可谓相当强大,甚至虚拟硬盘文件也不放过。。。 首先把 ...
分类:
其他好文 时间:
2020-07-25 09:16:00
阅读次数:
79