随笔分类 -  mysql

常用语句
【数据库】更新时间日期,而不修改小时,分钟
摘要:UPDATE t_security_in_out_record_sta set traffic_time = ADDTIME (date('2022-01-27') + interval 0 hour,time(traffic_time)) WHERE traffic_time like "2022 阅读全文

posted @ 2022-01-27 14:13 littlefive 阅读(99) 评论(0) 推荐(0)

sql 连表查询
摘要:https://www.w3school.com.cn/sql/sql_like.asp 查询:select * from 表名 where 字段 = ‘字段中值’ 连表查询: 学生表信息(Students): ID Name Age City MajorID 101 Tom 20 BeiJing 阅读全文

posted @ 2020-06-12 15:05 littlefive 阅读(253) 评论(0) 推荐(0)

导航