0
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?

More than 1 year has passed since last update.

この列の型定義はなに!?そんなときに役に立つコマンド(SQLServer)

Posted at

列定義を確認したい!!!

「~区分」などと付く列は、数字一文字で表現することもあるだろうが、その際についついシングルクォート(')をつけ忘れてエラーを表示させてしまう。
そんなときに思った。
この列の型定義なにっ!?って

経験が浅い故の戸惑いだが、これがきっかけで以下のコマンドを覚えることができた。
exec sp_columns @table_name = [テーブル名]
これで列定義の確認はばっちり!

0
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
0
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?