posted @ 2021-01-28 20:51
01 2021 档案
摘要:A、B两表,找出ID字段中,存在A表,但是不存在B表的数据。 方法一:使用 not inselect distinct A.ID from A where A.ID not in (select ID from B) 方法二:使用 left join...on... , "B.ID isnull"
阅读全文
摘要:SELECT 表名.字段 FROM 表名 where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(时间字段名)
阅读全文
posted @ 2021-01-28 15:03
摘要:https://blog.csdn.net/weixin_30933531/article/details/98528168?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-4.control&depth_1
阅读全文
posted @ 2021-01-26 15:50
摘要:今天遇到vue window.open无法打开外部地址,我的场景是HTTPS打开HTTP外部地址。在网上看了很多文档,使用以下三种方法发现都不可以。 1、通过a标签加onclick跳转 newLink(url) { let a = document.createElement(‘a‘); a.set
阅读全文
posted @ 2021-01-15 23:58
摘要:方法一: TO_NUMBER(): cast( '123 ' as UNSIGNED INTEGER) cast('11' as DECIMAL(10,2)) 例如: SELECT * FROM 表名 ORDER BY cast(字段名as SIGNED INTEGER) ; 方法二: 在数据里面定
阅读全文
posted @ 2021-01-07 21:53
摘要:List<RoomInfo> roomInfoList = new ArrayList<>();RoomInfo roomInfo = roomInfoList.stream() .filter(item -> item.getRoomId().equals(roomProprietorVo.get
阅读全文
posted @ 2021-01-06 09:58