随笔分类 -  mysql

摘要:如下,可以看到使用后,也统计了null的个数。 阅读全文
posted @ 2019-08-04 22:16 anobscureretreat 阅读(329) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from table1; +----------+------------+-----+---------------------+ | name_new | transactor | pid | order_date | +----------+------------+-----+---------------------+ | 1hah... 阅读全文
posted @ 2019-08-04 22:14 anobscureretreat 阅读(635) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from table1; +----------+------------+-----+---------------------+ | name_new | transactor | pid | order_date | +----------+------------+-----+---------------------+ | 1hah... 阅读全文
posted @ 2019-08-04 22:06 anobscureretreat 阅读(370) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from table1; +----------+------------+-----+---------------------+ | name_new | transactor | pid | order_date | +----------+------------+-----+---------------------+ | 1hah... 阅读全文
posted @ 2019-08-04 22:00 anobscureretreat 阅读(2162) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from table1; +----------+------------+-----+---------------------+ | name_new | transactor | pid | order_date | +----------+------------+-----+---------------------+ | 1hah... 阅读全文
posted @ 2019-08-04 21:52 anobscureretreat 阅读(10906) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from table1; +----------+------------+-----+---------------------+ | name_new | transactor | pid | order_date | +----------+------------+-----+---------------------+ | 1hah... 阅读全文
posted @ 2019-08-04 21:41 anobscureretreat 阅读(11486) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from table1 where minute(order_date)=46; +----------+------------+-----+---------------------+ | name_new | transactor | pid | order_date | +----------+------------+-----+-... 阅读全文
posted @ 2019-08-04 21:36 anobscureretreat 阅读(1028) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from table1; +----------+------------+-----+---------------------+ | name_new | transactor | pid | order_date | +----------+------------+-----+---------------------+ | 1hah... 阅读全文
posted @ 2019-08-04 21:29 anobscureretreat 阅读(3134) 评论(0) 推荐(0) 编辑
摘要:mysql> select tan(pi()/4); +--------------------+ | tan(pi()/4) | +--------------------+ | 0.9999999999999999 | +--------------------+ 1 row in set (0.00 sec) 阅读全文
posted @ 2019-08-04 21:25 anobscureretreat 阅读(264) 评论(0) 推荐(0) 编辑
摘要:mysql> select pi(); +----------+ | pi() | +----------+ | 3.141593 | +----------+ 1 row in set (0.00 sec) 阅读全文
posted @ 2019-08-04 21:24 anobscureretreat 阅读(1005) 评论(0) 推荐(0) 编辑
摘要:mysql> select mod(16,3); +-----------+ | mod(16,3) | +-----------+ | 1 | +-----------+ 1 row in set (0.00 sec) 阅读全文
posted @ 2019-08-04 21:21 anobscureretreat 阅读(2798) 评论(0) 推荐(0) 编辑
摘要:mysql> select sqrt(16); +----------+ | sqrt(16) | +----------+ | 4 | +----------+ 1 row in set (0.00 sec) 阅读全文
posted @ 2019-08-04 21:19 anobscureretreat 阅读(537) 评论(0) 推荐(0) 编辑
摘要:mysql> select sin(PI()/6); +---------------------+ | sin(PI()/6) | +---------------------+ | 0.49999999999999994 | +---------------------+ 1 row in set (0.00 sec) 阅读全文
posted @ 2019-08-04 21:18 anobscureretreat 阅读(563) 评论(0) 推荐(0) 编辑
摘要://获取pi 阅读全文
posted @ 2019-08-04 21:16 anobscureretreat 阅读(581) 评论(0) 推荐(0) 编辑
摘要:mysql> select abs(3-5); +----------+ | abs(3-5) | +----------+ | 2 | +----------+ 1 row in set (0.00 sec) 阅读全文
posted @ 2019-08-04 21:15 anobscureretreat 阅读(13474) 评论(0) 推荐(0) 编辑
摘要:mysql> select exp(1); +-------------------+ | exp(1) | +-------------------+ | 2.718281828459045 | +-------------------+ 1 row in set (0.00 sec) 阅读全文
posted @ 2019-08-04 21:13 anobscureretreat 阅读(956) 评论(0) 推荐(0) 编辑
摘要:mysql> select rand(); +--------------------+ | rand() | +--------------------+ | 0.9913473352709294 | +--------------------+ 1 row in set (0.00 sec) mysql> select rand()*100; +--------... 阅读全文
posted @ 2019-08-04 21:11 anobscureretreat 阅读(767) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from table1; +----------+------------+-----+---------------------+ | name_new | transactor | pid | order_date | +----------+------------+-----+---------------------+ | 1hah... 阅读全文
posted @ 2019-08-04 20:53 anobscureretreat 阅读(44291) 评论(0) 推荐(3) 编辑
摘要:alter table table1 add order_date datetime null; mysql> select * from table1; +----------+------------+-----+------------+ | name_new | transactor | pid | order_date | +----------+------------+... 阅读全文
posted @ 2019-08-04 20:48 anobscureretreat 阅读(2902) 评论(0) 推荐(0) 编辑
摘要:参考: https://www.yiibai.com/mysql/mysql_function_addtime.html 阅读全文
posted @ 2019-08-04 20:33 anobscureretreat 阅读(1160) 评论(0) 推荐(0) 编辑