LYSITHE TOOLS 005 ~PostgreSQL の\dの結果から選択してSQLをつくる~
\d、\d+、\dS、\dS+の結果(\d等のコマンド自体、および列ヘッダーを含めてペーストしてください
testdb=# \d sample_tbl Table "public.sample_tbl" Column | Type | Collation | Nullable | Default ---------------+--------------------------------+-----------+----------+------------------------------------------- choice_no | smallint | | | quantity | integer | | | number | bigint | | | price | numeric(10,3) | | | price2 | numeric | | | r_col | real | | | dp_col | double precision | | | su_id | smallint | | not null | nextval('sample_tbl_su_id_seq'::regclass) u_id | integer | | not null | nextval('sample_tbl_u_id_seq'::regclass) bu_id | bigint | | not null | nextval('sample_tbl_bu_id_seq'::regclass) product_name | character varying(10) | | | product_id | character(5) | | | remarks | text | | | create_date | timestamp(3) without time zone | | | create_date4 | timestamp without time zone | | | open_date | date | | | open_time | time(3) without time zone | | | open_time4 | time without time zone | | | delete_flg | boolean | | |
Extract
SELECTする列を選択してください。(よくSELECTする型の列のみ抽出)
Make SQL
実行するSELECTです。
Clear
LYSITHE TOOLS リシテ簡易ツール
PostgreSQL の\dの結果から選択してSQLをつくる
ver 0.1β 2023/12/1 公開
ver 0.2β 2023/12/13 テキストエリアの背景色をPostgreSQLっぽくしてみる
ver 0.3β 2023/12/19 テキストエリアの背景色を元に戻す。タイトルをPostgreSQLっぽくしてみる
ver 1.0 2024/2/12 0.3βをver1.0とする
ver 1.1 2024/12/13 動作するPython Ver UP 3.8 → 3.12
Auth LYSITHE K.Aikawa
本ツールに不具合がないことは保証いたしません。本ツールによる一切の損害に対し、当社は責任を負いません。