Sybase資料一覧
UNION ALLを実行すると「Msg 205, All queries in a SQL statement containing set operators must have an equal number of expressions in their target lists」というエラーが出る
Tweet
更新日:2008/1/5
対応ソフトウェア:Sybase 11.9.2
UNION ALL対象のデータは全て同じ内容のデータを抽出する必要がある。
例えば以下のSQLの場合、2つめのSELECTの抽出結果に「c」が足りないので同エラーとなる。
SELECT a,b,c FROM t1 UNION ALL SELECT a,b FROM t2 UNION ALL SELECT a,b,c FROM t3
関連情報(Google検索)
