ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    MySQL中的select结果按时间排序

    Jun 30, 20225 min read
          SELECT * FROM tb_history th
          where not exists
          (
            select 1 from tb_history 
            where key_word = th.key_word  
            and create_time > th.create_time 
          )
          ORDER BY create_time desc
          limit 10
    

    相关文章

    React 自定义 useMediaQuery Hooks 媒体查询

    本文介绍了如何在React中创建并使用自定义的`useMediaQuery` Hooks来实现媒体查询功能,以便根据屏幕宽度动态调整组件显示。

    SSH登录 公钥 私钥原理

    SSH登录通过非对称加密算法使用公钥和私钥实现安全认证和高效数据传输,增强了安全性、认证效率并简化了密码管理。

    import * as path from "path"; ts import as 的包引用的使用

    TypeScript 中的 `import as` 语法允许为引入的模块创建别名,如 `import * as myPath from "path"`,使得通过别名访问模块方法和属性更为直观。

    Resolved dependency were found, but they required a higher minimum deployment target

    The project requires updating its minimum deployment target or specifying a compatible version of the OpenWeChatSDK dependency due to a mismatch in minimum deployment target requirements.

    把一个数组置空有哪些方法?

    清空数组的方法包括重新赋值为空数组、设置长度为0、使用splice移除所有元素或循环置每个元素为null或undefined。