「はcollegetable」という名前のテーブルを作成します「CGPA」とコードを使用して一発でこの列の値を追加しようとしました:PostgreSQLでは既存のテーブルに新たに挿入された列に値を追加9.3
WITH col(stid, cgpa) as
( VALUES((1121,8.01),
(1131,7.12),
(1141,9.86))
)
UPDATE collegetable as colldata
SET cgpa = col.cgpa
FROM col
WHERE colldata.stid = col.stid;
とエラーを得た:
ERROR:operator does not exist:integer=record
LINE9:where colldata.stid=col.stid;
HINT:No operator matches the given name and arguement type.you might need to add explicit type casts.
plsを解決するためのplsのヘルプが事前にあります。
のhttpを参照してください。 com/questions/285551/why-may-i-not-upload-images-of-code-on-ask-a-question/285557#285557 –
** [編集] **あなたの質問と追加'create table'ステートメントとしてのテーブルの完全な定義、いくつかのsaそのデータに基づいて予想される出力を計算します。 [**フォーマットされたテキスト**](http://stackoverflow.com/help/formatting)、** **スクリーンショットはありません**(http://meta.stackoverflow.com/questions/285551/why-may -i-not-upload-code-on-so-ask-a-question/285557#285557) –