IBM TechXchange Community Together, we can connect via forums, blogs, files and face-to-face networking. Find your community Where is my content? If you’re looking for developerWorks content or a Support forum and ended up here, don't panic! You are in the right place. The content you're looking for. This page will help you find the content you are looking for, get answers to your questions, and f
はじめに DB2を使っているときに、「内容は問わない(キーとなる列のIDだけ付いていればよい)から大量のレコードを素早くデータベースに投入したい」ときのTipsです。 TPC-CやTPC-Hのデータを使う手もありますが、dbgenのようなデータ生成プログラムをダウンロードしてコンパイルするのも手間がかかります。今回のやり方は、数分で簡単なデータを生成する方法として重宝しています。 手順 共通表式を使って任意の数のレコードをSELECT結果として取得する SQLの規格には「共通表式」という、SQLの表現力を強化する上で大変便利な機能があります。その共通表式を応用して、指定したレコード数を返却するように書くことができます。 たとえば下のSQLでは、"with"句で"temp"という共通表を定義しており、"as"以降の括弧の中で列をひとつだけ持つ表を記述しています。 with temp(a) a
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く