我正在与Katalon Studio合作进行网络测试自动化。
我正在使用数据库中的数据进行用户登录,我必须与 ORMA_PROFESSIONALS.PROF_SURNAME_2 区别,该空白是用空白写的。但是,当我在Katalon Studio SLQ查询中使用此查询时,会在下面收到该消息。
我在SQL Server Management 2016中使用相同的查询,但没有收到任何问题。
SELECT SECU_USERS.USER_LOGIN as login,
ORMA_PROFESSIONALS.PROF_NAME
+' '+ ORMA_PROFESSIONALS.PROF_SURNAME_1
+''+case ORMA_PROFESSIONALS.PROF_SURNAME_2
when '' then ''
else ' '+ORMA_PROFESSIONALS.PROF_SURNAME_2
end
as name
FROM SECU_USERS
inner join ORMA_PROFESSIONALS on
SECU_USERS.PROF_ID=ORMA_PROFESSIONALS.PROF_ID
错误:
com.microsoft.sqlserver.jdbc.SQLServerException: Unable to identify the table SELECT SECU_USERS.USER_LOGIN as login,
ORMA_PROFESSIONALS.PROF_NAME
+' '+ ORMA_PROFESSIONALS.PROF_SURNAME_1
+''+case ORMA_PROFESSIONALS.PROF_SURNAME_2
when '' then ''
else ' '+ORMA_PROFESSIONALS.PROF_SURNAME_2
end
as name
FROM SECU_USERS
inner join ORMA_PROFESSIONALS on
SECU_USERS.PROF_ID=ORMA_PROFESSIONALS.PROF_ID para los metadatos.
Query: SELECT SECU_USERS.USER_LOGIN as login,
ORMA_PROFESSIONALS.PROF_NAME
+' '+ ORMA_PROFESSIONALS.PROF_SURNAME_1
+''+case ORMA_PROFESSIONALS.PROF_SURNAME_2
when '' then ''
else ' '+ORMA_PROFESSIONALS.PROF_SURNAME_2
end
as name
FROM SECU_USERS
inner join ORMA_PROFESSIONALS on
SECU_USERS.PROF_ID=ORMA_PROFESSIONALS.PROF_ID Parameters: []