这里是新的(加上对英语不好的抱歉..),我在使用这里的两个表时遇到了一些 SQL 困难 - 销售和产品:
Product:
ProductID | Product | Price
____________________________
1 | walnuts | 16
2 | cashew | 25
3 | peanuts | 4
Sells (each product kilograms sold):
Day | walnuts | cashew | hazelnut
__________________________________
1 | 2 | 3 | 1
2 | 8 | 6 | 25
3 | 1 | 3 | 12
Run Code Online (Sandbox Code Playgroud)
我想显示的是第 2 天赚到的总钱(例如),那么我该如何计算呢?
几天前我在我的计算机上安装了Ubuntu,然后安装了WebStorm,但我遇到了JavaScript项目的问题.它给了我一个错误,说我不能使用"let"这个词.几个小时后,我找到了一些解决方案:使用"use strict".有可能不是"use strict"吗?
还有一件事:它不认识我Math.pow的更快替代方案:(a**2);
编辑:我正在使用ECMAScript 6,这是确切的错误:SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode