我已经执行以下查询:为什么FORMAT功能无法识别?
SELECT productid,
FORMAT(productid, 'd10') AS str_productid
FROM Production.Products;
我是sayng是'FORMAT' is not a recognized built-in function name.
我使用的TSQL2012数据库和Microsoft SQL Server 2012和快速。 有人能告诉我什么是错的吗? Express verssion没有包含Format
的功能?
可能有与安装问题,或者您没有足够的访问系统数据库 – user1455836
这是可能的,因为我已经看到'SYSDATETIME'无法识别太。如何解决这个问题? –
这是什么从sys.databases命令输出中选择compatibility_level,name? – user1455836