クエリ
これは使えるのでメモメモ update A set A.hogehoge=(case when punipuni = '1' then '202' when punipuni = '2' then '203' else '204' end) from table1,table2 where とってくるデータの条件
これもちょいちょい使うのでメモメモ。 ・まずはBKUPを取得 select * into バックアップ先テーブル名 from バックアップ元テーブル名 (nolock); ・BKUP取得後、コピー先とコピー元で件数一致を確認する select 'テーブル名' as 'table_name' (select count(*…