我想为每行乘以2个单元格,并将其值放在称为Total的最后一列中。可以通过常规查询来完成吗?
例:
Pieces | Price | Total 6 | 4 | null // should be 24 2 | 10 | null // should be 10
用这个:
SELECT Pieces, Price, Pieces * Price as 'Total' FROM myTable