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?

Azure Synapse Analytics 専用SQLプールでのテーブル名、カラム型、カラム名変更など

Posted at

表題の件、構文がバラバラだったので備忘録としてまとめておこうと思います。
※2024/03/05現在の情報。今後より良い方法ができたり機能が削除されたりする可能性あり。

-- テーブル名変更
rename object SCM01.TBL_A to TBL_B;
-- カラム型変更
alter table SCM01.TBL_B alter column COL_A NVARCHAR(10); 
-- カラム名変更
sp_rename 'SCM01.TBL_B.COL_A', 'COL_B', 'COLUMN';
1
0
0

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?