GROUP BY语句 功能:根据一个或多个列对结果集进行分组 WITH ROLLUP 功能:实现在分组统计数据基础上在进行相同的统计 ##select coalesce(a,b,c); 如果a==null,则选择b; 如果b==null,则选择c; 如果a!=null,则选择a; ...
分类:
数据库 时间:
2021-02-16 12:05:10
阅读次数:
0
1.断言 标准库 testing "github.com/stretchr/testify/assert" func TestDemo(t *testing.T) { assert.Nil(t, nil) assert.NotNil(t, struct{}{}) assert.Equal(t, 5, ...
分类:
编程语言 时间:
2021-02-16 12:02:30
阅读次数:
0
一、导入表结构 USE `qskj_03`; /*Table structure for table `test` */ DROP TABLE IF EXISTS `test`; CREATE TABLE `test` ( `id` int(10) NOT NULL AUTO_INCREMENT C ...
分类:
数据库 时间:
2021-02-15 12:33:14
阅读次数:
0
页面重定项 例:将文本框内容传递至第二个页面: Response.Redirect("Login.aspx?name=" + txtName.Text.ToString()); 获取传过来的信息: if (Request.QueryString["name"] != null) { txtName. ...
分类:
其他好文 时间:
2021-02-15 12:04:51
阅读次数:
0
项目场景: 提示:axios发送get和post请求都提示: Access to script at ‘XXXX’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported ...
分类:
移动开发 时间:
2021-02-15 11:38:58
阅读次数:
0
JS数据类型 基本数据类型 number string boolean undefined null 复杂数据类型/引用数据类型 array object function window.onload = function(){ var str = 'abc'; var num =123; var ...
分类:
Web程序 时间:
2021-02-10 13:42:28
阅读次数:
0
聚合函数 函数返回值型 函数(参数) 描述 BIGINT count(*), count(expr), count(DISTINCT expr[, expr...]) 1.统计总行数,包括含有 NULL 值的行 2.count(expr) 统计提 供非 NULL 的 expr 表达式 值的行数 3. ...
分类:
其他好文 时间:
2021-02-10 13:04:58
阅读次数:
0
Vue(二) Axios异步通信 Axios是一个开源的可以用在浏览器端和Node.js的异步通信框架,它的主要作用就是实现Ajax异步通信 <head> <meta charset="UTF-8"> <title>Title</title> <!--解决闪烁问题--> <style> [v-clo ...
分类:
其他好文 时间:
2021-02-10 12:57:39
阅读次数:
0
SQL injection UNION attack, finding a column containing text 首先判断列数,过程略,得知有三列,因为null与任何数据类型兼容,所以我们只需要一次改一个位置即可,先将第一个位置的null改成题目中给出的随机字符串 发现第一个位置不能存放字符 ...
分类:
数据库 时间:
2021-02-09 12:26:59
阅读次数:
0
1.1、先序遍历 根结点-左子树-右子树 // 指针 void preorder(node* root) { if(root==NULL) return; //空树,递归边界 printf("%d\n",root->data); preoder(root->lchild); preoder(root ...
分类:
其他好文 时间:
2021-02-09 12:23:21
阅读次数:
0