随笔分类 - mysql
摘要:insert into persons (id_p, lastname , firstName, city ) values (200,'haha' , 'deng' , 'shenzhen'), (201,'haha2' , 'deng' , 'GD'), (202,'haha3' , 'deng
阅读全文
摘要:https://blog.csdn.net/johnny0316/article/details/124819932
阅读全文
摘要: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
阅读全文
摘要:1.DATE只存储一个日期:年月日 2.TIME只存储一天的时间:时分秒 3.DATETIME存储日期+时间,DATETIME被格式化为YYYY-MM-DD HH:MM:SS,有效范围从1000年到9999年(以及其间的所有内容)。精确到时分秒,用于做时间戳。8个字节储存。 4.TIMESTAMP
阅读全文
摘要:建表语句: CREATE TABLE `supp_goods_profit_time_price` ( `PROFIT_TIME_PRICE_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '分润时间价格ID', `SUPP_GOODS_ID` bigi
阅读全文
摘要:select * from temp_supp_goods where goods_name regexp '[0-9]'; select * from temp_supp_goods where goods_name regexp '元'
阅读全文
摘要:已知table表的行数是6; 1.select count(*) from table; 返回的是table表的行数 2.select count(1) from table; 返回的是table表的行数 3.select count(column) from table; count其中的一列,返
阅读全文
摘要:已知table表中共有6条记录 1.select * from table; 返回表中的详细记录; 2.select 1 from table; 结果,得出一个行数和table表行数一样的临时列,每行的列值是1,行数和table表行数一致 3.select 2 from table; 结果,得出一个
阅读全文