摘要:
group_concat函数支持order by内部排序,例如:# 按照id倒序拼接imgSELECT GROUP_CONCAT(img ORDER BY id DESC) FROM `thumb_table`;参考:https://mariadb.com/kb/en/group_concat/ 阅读全文
摘要:
可以用线程来做,每隔几秒开一个线程 代码如下 public void runTask() { final long timeInterval = 120000;// 两分钟运行一次 final ThreadService threadService = new ThreadService(); Ru 阅读全文
摘要:
org.apache.velocity.util.DeprecationAwareExtProperties.warnDeprecated configuration key 'resource.loader' has been deprecated in favor of 'resource.lo 阅读全文
摘要:
Java8在 lambda 表达式中使用局部变量会提示:Local variable flag defined in an enclosing scope must be final or effectively final这是因为你使用的局部变量在初始化后,又对这个变量进行了赋值。赋值后会认为这个 阅读全文
摘要:
public class Java8Test { public static void main(String[] args) { Person p1 = new Person("麻子", 31); Person p2 = new Person("李四", 20); Person p3 = new 阅读全文
摘要:
t re import time from pprint import pprint import pandas as pd import requests class Snowball: xq = 'https://xueqiu.com' # 雪球自选股列表相关json url = {'get': 阅读全文
摘要:
错误示例 假设 第一个参数的 元素个数为 3 // 实际执行的时候 会变成 3 条语句 // delete from sheet where id IN (1) // delete from sheet where id IN (2) // delete from sheet where id IN 阅读全文
摘要:
MySQL中常用到判断符号,而不等于是比较常用的符号,下面讲解以下三种不等于符号符号 意义<> 不等于的最早用法,可移植性优于下面两种!= 后来MySQL添加上的,类似于Java等编程语言中的不等于not in not in后面加上数据,表示不在该数据里面MySQL中推荐使用<>来表示不等于,为什么 阅读全文