Warning: Use of undefined constant ddsg_language - assumed 'ddsg_language' (this will throw an Error in a future version of PHP) in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/sitemap-generator/sitemap-generator.php on line 44
「PostgreSQL」によるテーブルのコピー(複写)SQL | EZiC[イージック]コンテンツ紹介!

「PostgreSQL」によるテーブルのコピー(複写)SQL

SQL:
  1. -- ★テーブルのコピー(新規テーブル作成)
  2. --   public.test_table_copy ・・・ 新規作成されるテーブル(コピー)
  3. --   public.test_table ・・・ コピー元のテーブル
  4. CREATE TABLE public.test_table_copy AS (
  5.   SELECT * FROM public.test_table
  6. );

タイトルとURLをコピーしました