Transact-SQL Select statement results with bad GUID
问题 We have a table with GUID primary keys. When I search for a specific key, I can use either: SELECT * FROM products WHERE productID='34594289-16B9-4EEF-9A1E-B35066531DE6' SELECT * FROM products WHERE productID LIKE '34594289-16B9-4EEF-9A1E-B35066531DE6' RESULT (for both): product_ID Prd_Model ------------------------------------ -------------------------------------------------- 34594289-16B9-4EEF-9A1E-B35066531DE6 LW-100 (1 row affected) We have a customer who uses our ID but adds more text