
mysql
飞梦v
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MySQL unsigned 进行减法运算出现的报错
ERROR 1690 (22003): DECIMAL UNSIGNED value is out of range in '(ceshi.goods.market_price - ceshi.goods.shop_price)方法一:mysql> select goods_id,goods_name,cast(market_price as signed) - cast(shop_...原创 2019-08-24 16:40:56 · 1267 阅读 · 0 评论 -
MySQL order by 语句的一些注意要点
目的 查询每个栏目下,goods_id最大的商品本次使用的是MySQL8.0进行测试在MySQL查询中,from中嵌套(sql语句),当sql最后的语句是order by 句子时,会被忽略掉,从而查询不到想要的结果这是原始表,称 表1子查询表,称表2mysql> select goods_id,cat_id,goods_name from goods-> order by...原创 2019-08-26 21:12:56 · 672 阅读 · 2 评论