Oracle索引建立原则 确定针对该表的操作是大量的查询操作还是大量的增删改操作。 尝试建立索引来帮助特定的查询。检查自己的sql语句,为那些频繁在where子句中出现的字段建立索引。 where语句中不得不对查询列采用函数查询,如upper函数,最好建立相应函数索引; 在SQL语句中经常进行GRO ...
分类:
数据库 时间:
2021-04-24 11:52:47
阅读次数:
0
for in 一般用于遍历对象的可枚举属性。以及对象从构造函数原型中继承的属性。对于每个不同的属性,语句都会被执行。 不建议使用for in 遍历数组,因为输出的顺序是不固定的。 如果迭代的对象的变量值是null或者undefined, for in不执行循环体,建议在使用for in循环之前,先检 ...
分类:
其他好文 时间:
2021-04-23 12:25:38
阅读次数:
0
https://blog.csdn.net/dietime1943/article/details/72742651 错误的做法: update 表1 set 表1.字段= (SELECT表2.字段FROM表2 where 表2.ID = 表1.ID) 后面这种情况其实可以使用left join的方 ...
分类:
数据库 时间:
2021-04-23 12:02:59
阅读次数:
0
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
说明: break语句:终止并跳出循环体。continue语句:终止当前循环,重新开始一个新的循环。goto语句:跳转到指定位置 。 一,continue语句 class Program { static void Main(string[] args) { for(int i = 1; i <= ...
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:
系统相关 时间:
2021-04-22 16:20:40
阅读次数:
0
首发于Enaium的个人博客 不用XML只用注解 首先需要创建6个注解 SQL用于输入SQL语句 @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface SQL { String[] valu ...
分类:
其他好文 时间:
2021-04-22 16:14:47
阅读次数:
0
关系型数据库系统(RDBMS):是指使用了关系模型的数据库系统(MySQL、Oracle、DB2、SQL Server) NoSQL数据库:指的是数据分类存放,但是数据之间没有 关联关系的数据库系统(Redis、MongoDB、Neo4J、MemCache) MySQL数据库(使用Navicat工具 ...
分类:
数据库 时间:
2021-04-22 16:13:48
阅读次数:
0
方法1 select count(1) from sys.objects where name = 'student' 方法2 SELECT table_name FROM information_schema.TABLES WHERE table_name ='student' 程序员阿飞 202 ...
分类:
数据库 时间:
2021-04-22 16:12:38
阅读次数:
0
<select id="queryTableDataForMap" parameterType="String" resultType="map"> ${_parameter}</select>在mybatis中mapper文件中像这样写,你只需要传入一条String格式的sql语句 他就可以直接执 ...
分类:
其他好文 时间:
2021-04-22 16:11:10
阅读次数:
0