![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
文章平均质量分 87
snailchangquan
oooooooooooo
展开
-
数据库相关——存储过程
数据库启动:service mysql start 1、insert into: 使用数据库工具的查询插入表信息 INSERT INTO teacher(card_no, name, sex, age, course, created, modified) VALUES ('1233', 'abc', 'M', 12, 'eng',NOW(), NOW()); 2、存储过程:navicat...原创 2019-09-10 10:09:30 · 295 阅读 · 0 评论 -
sql语句汇总
1、查询 类型 在某时间范围内,并做sum处理; SELECT SUM(play_times) FROM tb_ids_ad_exposure WHERE type='3' and play_starttime BETWEEN '2019-07-02 00:00:00' and '2019-07-02 23:59:59' ; 2、删除 时间大于当前时间44天的数据 DELETE FROM t...原创 2019-09-12 13:22:50 · 152 阅读 · 0 评论