简体   繁体   English

SQL Server Management Studio - 确定数据类型

[英]SQL Server Management Studio - Determine data types

I just created a table in SQL Server Management Studio and now I forget what datatypes I assigned to some of the fields.我刚刚在 SQL Server Management Studio 中创建了一个表,现在我忘记了分配给某些字段的数据类型。 How do I access that information?我如何访问该信息?

右键单击表格,选择“设计表格”。

If you select a table name in the query window of Sql Server Management Studio and press ALT + F1 it will display the details of that table.如果您在 Sql Server Management Studio 的查询窗口中选择一个表名并按ALT + F1它将显示该表的详细信息。

In the background shortcut key will execute sp_help on your behalf, so in this example it executes: sp_help users, which is much quicker than typing it.在后台快捷键将代表您执行 sp_help,因此在本示例中它执行:sp_help users,这比键入它快得多。

在此处输入图片说明

Source Here 来源在这里

select * from information_schema.columns where table_name = <yourtable>
sp_help tablename . Gives you information about your table including fields and datatypes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM