Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
倉庫内の商品の総重量を選択するために、as/400 の DB/2 でクエリを作成しています。列の重みと数があります-今必要なのは次のようなものです:
select weight, count, (weight * count) as total from warehouse
しかし、このクエリは機能していません。エラー メッセージが表示されます。
* use not valid.
誰かが私が間違っていることを教えてもらえますか?
weight と count が数値型であることを確認してください。そうでない場合は、テーブルの設計を変更するか、データを数値型にキャストします。