我在 SQL Server 2008r2 的 SQL 中使用 LOWER 时遇到问题 我想我对 lower 的用法有误解,我总是遇到同样的错误 Incorrect syntax near ','
INSERT INTO [ch-s-0008180].HolidayTracker.dbo.HtUser(FirstName,LastName,Email,UserName,AdAccount,AdDomain)
SELECT u1.firstName,u1.lastName,u1.email,'CH'+(LOWER(LEFT(u1.firstName,2))+(LOWER(LEFT(u1.lastName,3)),'EUROPE\'+(LOWER(LEFT(u1.firstName,2))+(LOWER(LEFT(u1.lastName,3)),''
FROM HolidayTracker.dbo.HTUser u1
LEFT JOIN HolidayTracker.dbo.HtUser u2 ON u1.firstName = u2.FirstName AND u1.lastName = u2.LastName AND u1.email = u2.Email
感谢您的帮助和快速答复