SQLServerメモ

COLLATE

大文字小文字を区別してselectする場合はCOLLATE句を使う
SQLServer の collation (照合順序)の設定 - Enjoi Blog

エスケープシーケンス

%を含む文字は下のようになる。
like '%[%]%'

information_schema.columns

columnの一覧取得(describeみたいな)などに使える。

select column_name
from information_schema.columns
where table_name='テーブル名'
order by ordinally position