T-sql中的对象数据类型是什么?

时间:2014-11-13 10:35:24

标签: sql-server tsql

如果Vb.net有未知变量的对象数据类型,那么T-SQL中的等价物是什么?

T-sql中的示例

declare @variable as object?

由于

1 个答案:

答案 0 :(得分:0)

也许SQL_VARIANT接近你所追求的目标:

When handling the sql_variant data type, SQL Server supports implicit conversions of objects with other data types to the sql_variant type. However, SQL Server does not support implicit conversions from sql_variant data to an object with another data type.

这是list of all datatypes in SQL Server