摘要: 首先登陆linux系统,输入账号xxxx回车,再输入密码:xxxx Linux常用命令如下: [root@localhost ~]# cd .. 返回上一级目录 [root@localhost /]# ls 查看目录信息(有很多目录) [root@localhost /]#cd - --返回上次所在 阅读全文
posted @ 2024-08-22 15:45 勇气1 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、时间差(秒级别) select creatime,updatime,TIMESTAMPDIFF(MICROSECOND,creatime,updatime)/1000000 AS time_diff from 表名 where application like '%17%' and creati 阅读全文
posted @ 2024-08-22 14:33 勇气1 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、倒叙查询:查询出名字是“”张三”的前100条数据,根据creatime倒叙排列 db.表名.find({"name":"张三"}).sort({"creatime":-1}).limit(100); 2、模糊查询:查询出前100条名字含“张”的数据,,根据creatime倒叙排列 db.表名.f 阅读全文
posted @ 2024-08-22 13:46 勇气1 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 一、查询key数据类型 type key (type+key获取当前key的数据类型) eg1: type vehicle:lifecysle:all:EOO12345678901234 》》》string类型:字符串是最基本的 key-value 数据类型 》》》Hash类型:哈希是键值对集合,适 阅读全文
posted @ 2024-08-22 13:19 勇气1 阅读(12) 评论(0) 推荐(0) 编辑