加载中
mysql中将多行数据合并成一行数据

一个字段可能对应多条数据,用mysql实现将多行数据合并成一行数据 例如:一个活动id(activeId)对应多个模块名(modelName),按照一般的sql语句: 1 SELECT am.activeId,m.modelName 2 FRO...

2020/06/12 18:23
2.2K
ySQL中获取天、周、月等数据

MySQL中获取天、周、月等数据 1.今天 select * from 表名 where to_days(时间字段名) = to_days(now()); 2.昨天 SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) <= 1 ...

2019/10/11 19:15
240
tensorflow save checkpoint

#save to file import tensorflow as tf import numpy as np ##(1)Save to file 把相关变量存储到文件中 #remember to define the same dtype and shape when restore W = tf.Variable([[...

Java工程中嵌入scala代码

今天我将介绍如何在Java工程使用Scala代码。对于那些想在真实场景中尝试使用Scala的开发人员来说,会非常有意思。这和你项目中有什么类型的东西毫无关系:不管是Spring还是Spark还是别的。我...

make antd nested table show different data in different rows

https://ant.design/components/table-cn/#components-table-demo-nested-table modify parent table like this: expandedRowRender={record => { if (record.key === 'xxx') { return expa...

2019/05/21 17:26
291
MySQL INSERT插入条件判断:如果不存在则插入

普通的 INSERT INTO 插入: INSERT INTO card(cardno, cardnum) VALUES('1111', '100'); INSERT INTO card(cardno, cardnum) VALUES('2222', '200'); ... 对于普通的 INSERT 插入,如果想要保...

2018/12/28 20:31
276
初识kafka的zookeeper

最近项目中,使用redis进行消息的分发与订阅。这种模式就是一种多播的方式,但是随着消息的不断增加,消费端来不及处理所有的数据。在没有持久化的功能下,很多数据丢失了。当然,也可以使用...

AngularJS orderBy 使用要点

AngularJS orderBy 使用要点总结:   1,书写格式 基本应用格式为: ng-repeat="item in itemList | orderBy:p1:p2" 参数p1可以是字段名或自定义函数,p2指是否逆序,默认是false 举例: ...

2018/09/17 20:45
220
Angular统一拦截器(httpInterceptor)

angular中提供了这样的拦截器接口$httpProvider.interceptors,只要按格式要求定一个httpInterceptor(这个名字是自定义的,但是其拥有的属性必须要严格按照一定格式)的factory。可能像下面...

2018/08/30 20:51
4.5K
polymer1.0 Behaviors

Polymer supports extending custom element prototypes with shared code modules called behaviors. A behavior is an object that looks similar to a typical Polymer prototype. A beha...

2018/05/02 11:23
148

没有更多内容

加载失败,请刷新页面

返回顶部
顶部