1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Db2 for i のカラム名をかんたんにコピペする方法

Posted at

ようやくDb2 for i でもながーいカラム名が普及し始めたようです。

これまではDDS(や5250ベース)の制約で、カラム名(フィールド名)は最大10桁でしたので目で見てタイプして問題ありませんでした:smile:
image.png

が、SQLベースで書く事が増えた昨今、
image.png

この長さのカラム名は自分だとタイポの嵐で無理です:sweat_smile:

Db2 for i カラム名をかんたんにコピペする方法① SQLスクリプト実行画面から

  1. SELECT * で全カラムを検索
  2. 結果の任意のカラム名を右クリック -> 詳細 を選択
    image.png
    3.列を右クリック -> コピー -> カラム名 を選択
    image.png
    4.必要な個所にペースト
    image.png

以上です。

これ以外の手順もあると思うので探してみてください(気が付いたら追記します)

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?