随笔分类 -  mysql

摘要:insert into persons (id_p, lastname , firstName, city ) values (200,'haha' , 'deng' , 'shenzhen'), (201,'haha2' , 'deng' , 'GD'), (202,'haha3' , 'deng 阅读全文
posted @ 2022-06-27 17:50 wyuioahxvm 阅读(94) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/johnny0316/article/details/124819932 阅读全文
posted @ 2022-05-30 14:14 wyuioahxvm 阅读(206) 评论(0) 推荐(0)
摘要:select c.*,(select count(hcus.id) from hcus where c.id=hcus.id and study_status='finished') as learnStuNum,(select count(hcus.id) from hcus where c.id 阅读全文
posted @ 2022-05-29 21:17 wyuioahxvm 阅读(771) 评论(0) 推荐(0)
摘要:1.DATE只存储一个日期:年月日 2.TIME只存储一天的时间:时分秒 3.DATETIME存储日期+时间,DATETIME被格式化为YYYY-MM-DD HH:MM:SS,有效范围从1000年到9999年(以及其间的所有内容)。精确到时分秒,用于做时间戳。8个字节储存。 4.TIMESTAMP  阅读全文
posted @ 2020-01-09 15:56 wyuioahxvm 阅读(948) 评论(0) 推荐(0)
摘要:建表语句: CREATE TABLE `supp_goods_profit_time_price` ( `PROFIT_TIME_PRICE_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '分润时间价格ID', `SUPP_GOODS_ID` bigi 阅读全文
posted @ 2019-12-26 10:59 wyuioahxvm 阅读(173) 评论(0) 推荐(0)
摘要:select * from temp_supp_goods where goods_name regexp '[0-9]'; select * from temp_supp_goods where goods_name regexp '元' 阅读全文
posted @ 2019-08-15 11:17 wyuioahxvm 阅读(545) 评论(0) 推荐(0)
摘要:已知table表的行数是6; 1.select count(*) from table; 返回的是table表的行数 2.select count(1) from table; 返回的是table表的行数 3.select count(column) from table; count其中的一列,返 阅读全文
posted @ 2019-08-15 10:43 wyuioahxvm 阅读(140) 评论(0) 推荐(0)
摘要:已知table表中共有6条记录 1.select * from table; 返回表中的详细记录; 2.select 1 from table; 结果,得出一个行数和table表行数一样的临时列,每行的列值是1,行数和table表行数一致 3.select 2 from table; 结果,得出一个 阅读全文
posted @ 2019-08-08 10:37 wyuioahxvm 阅读(441) 评论(0) 推荐(0)