本次来讲解与SQL查询有关的两个小知识点,掌握这些知识点,能够让你避免踩坑以及提高查询效率。1、允许字段的值为null,往往会引发灾难首先,先准备点数据,后面好演示createtableanimal(idint,namechar(20),index(id))engine=innodb;index(id)表示给id这个字段创建索引,并且id和name都允许为null。接着插入4条数据,其中最后一条数
分类:
数据库 时间:
2020-12-01 12:23:45
阅读次数:
14
1.打开shell终端,输入 sudo vi /etc/rc.local 2.在编辑器里面输入自己要启动的脚本 #!/bin/bash echo "run incar ai program..." cd /opt/robot nohup bash autorobot.sh & 2>/dev/null ...
分类:
系统相关 时间:
2020-12-01 12:15:17
阅读次数:
12
该系列文档是本人在学习 Mybatis 的源码过程中总结下来的,可能对读者不太友好,请结合我的源码注释(Mybatis源码分析 GitHub 地址、Mybatis-Spring 源码分析 GitHub 地址、Spring-Boot-Starter 源码分析 GitHub 地址)进行阅读 MyBati ...
分类:
数据库 时间:
2020-12-01 12:14:50
阅读次数:
12
package com.song.main; public class FinallizeEspaceGC { public static FinallizeEspaceGC SAVE_HOOK = null; public void isAlive(){ System.out.println("y ...
分类:
其他好文 时间:
2020-11-30 15:59:10
阅读次数:
7
Yii的Model是自带Label的,显示表格时会自动从Model中获取Label并显示,但是在导出到文件时,却并不能自动获取Label,经过跟踪发现,问题出在如下代码:publicfunctioninitExport(){......$this->setDefaultStyles(‘header‘);$this->setDefaultStyles(‘box‘);$this->f
分类:
其他好文 时间:
2020-11-30 15:28:37
阅读次数:
5
void copy(BiTree T,BiTree &NewT){ //复制树 if(T == NULL){ NewT = NULL; return; }else { NewT = new BiTNode; NewT->data = T->data; copy(T->lchild,NewT->lch ...
分类:
其他好文 时间:
2020-11-30 15:28:17
阅读次数:
2
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/ ...
分类:
其他好文 时间:
2020-11-30 15:26:42
阅读次数:
3
一、Table Demo CREATE TABLE `employees` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(24) NOT NULL DEFAULT '' COMMENT '姓名', `age` int(11) NOT N ...
分类:
数据库 时间:
2020-11-30 15:26:05
阅读次数:
7
定义几个常用的方法 const utils = { //定义变量是否存在 js有两个表示不存在的值 undefined|null true表示存在 false表示不存在(undefined|null) existy(val) { return val != null //undefined 也是可以 ...
分类:
其他好文 时间:
2020-11-27 11:46:22
阅读次数:
19
发现1可以进去0进不去 <if test="status != null and status != ''"> and c.status = #{status} </if> 后来修改为 <if test="status != null"> and c.status = #{status} </if> ...
分类:
其他好文 时间:
2020-11-27 11:44:41
阅读次数:
13