我目前有一个表Table1,字段col1为decimal(18,2),如何通过系统相关表sys可以查出这个字段的整数位18,小数位2?谢谢!
------解决方案--------------------
- SQL code
SELECT name , precision , scaleFROM sys.columnsWHERE object_id = OBJECT_ID('order_detail') AND system_type_id = 106
SELECT name , precision , scaleFROM sys.columnsWHERE object_id = OBJECT_ID('order_detail') AND system_type_id = 106