Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SELECT CAST(binaryColname AS VARCHAR(5000)) FROM tableName
上面的查询没有为我正确获取实际数据。
尝试这个 :
SELECT CAST(binaryColname AS VARCHAR(max)) FROM tableName SELECT CONVERT(varchar(max),binaryColname,2) FROM tableName