导航

2021年11月10日

摘要: 一、查询数量-count()【有多少条数据】 例如:select count(id) count from user where 1 = 1 译:在user表中查询条件满足的数据数量,并以count返回【where类似于if条件】 注: 1、count(*)代表着数据统计的总数。count(id) 阅读全文

posted @ 2021-11-10 16:21 小白*代码 阅读(1969) 评论(0) 推荐(0)

摘要: 在mysql数据库中时间正常显示,如下图: 但是通过node查询得到的数据时间格式变了,如下图 解决办法,配置链接池的时候添加 timezone: "SYSTEM",如下图: 阅读全文

posted @ 2021-11-10 15:50 小白*代码 阅读(627) 评论(2) 推荐(0)