Integrity constraint violation: 1052 Column 'deleted' in where clause is ambiguous MySQL查询的时候出现这个错误提示多半是因为: 1.多表查询的时候几个表中同时出现了某个相同的列名,而在查询条件WHERE后面又没有 ...
分类:
数据库 时间:
2020-03-31 19:19:36
阅读次数:
95
typeof 操作符 你可以使用 typeof 操作符来检测变量的数据类型。 typeof "John" // 返回 string typeof 3.14 // 返回 number typeof false // 返回 boolean typeof [1,2,3,4] // 返回 object ty ...
分类:
编程语言 时间:
2020-03-29 21:18:37
阅读次数:
75
vector 线性的动态分配存储空间。定义如下 template <class T, class Alloc = alloc> class vector { public: // 类型相关定义 typedef T value_type; typedef value_type* pointer; ty ...
分类:
其他好文 时间:
2020-03-27 16:51:10
阅读次数:
70
SELECT `渠道名称` , SUM(`当日其他`) AS 当月其他 FROM `渠道信息` as A , `一线数据汇总` AS B WHERE A.`渠道名称` = B.`渠道名称` GROUP BY `渠道名称` 错误原因:表A和表B里都有'渠道名称',select时要指明是哪个表里的。 S ...
分类:
其他好文 时间:
2020-03-20 11:07:13
阅读次数:
61
Clustered and Secondary Indexes(聚集索引和二级索引) Every InnoDB table has a special index called the clustered index where the data for the rows is stored. Ty ...
分类:
数据库 时间:
2020-03-16 14:29:24
阅读次数:
84
自定义注解: package com.example.demo.ann; import org.springframework.stereotype.Repository; import java.lang.annotation.*; //注解运行的位置 @Target(ElementType.TY ...
分类:
编程语言 时间:
2020-03-14 20:01:16
阅读次数:
187
触发场景 多表联合查询的时候,2个或多个表内有相同字段名,例如:user表内有字段名user_id,account表内有字段名user_id,那么在user表和account表联合查询的时候where条件如果不指定user_id属于哪个表就会报错。 解决方法 在联表查询语句中条件字段前面加上对应的表 ...
分类:
其他好文 时间:
2020-03-10 11:34:57
阅读次数:
50
call方法 f.myCall(obj) 就是将f方法添加到obj的属性中,f中的this 指向 obj;即 obj.f() // 思路:将~要改变this指向的方法,挂到目标对象上执行并返回 Function.prototype.myCall = function(context) { if(ty ...
分类:
编程语言 时间:
2020-03-09 17:51:33
阅读次数:
53
修饰符 public private protected 的使用 ...
分类:
其他好文 时间:
2020-03-08 17:35:59
阅读次数:
61
14.166在ty库中删除pritab表的id=11数据 14.165在ty库中更新pritab表的id=11数据,1032故障出现 解决方法: 根据报错信息知道binlog文件(Relay_Master_Log_File: mysql-binlog.000004)和position号 (Exec_ ...
分类:
数据库 时间:
2020-03-05 10:29:29
阅读次数:
88