exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute statement; SQLis org.hibernate.exception.SQLGrammarException: could not execute statement] with root cause
java.sql.SQLSyntaxErrorException
我试图在单个表中执行基于条件的查询,这是我在sql server中的查询。其中PATTERN是列名,默认值设置为0,我只想将结果显示到excel表格的一个单元格中。我链接了SQL server和Excel工作表。PATTERN,COLOR,SHIFT FROM [DEFECT_RESULTS]ELSEpattern列存在,但以下错误仍在显示错误:列名称'PATTERN‘无效。
我的sql服务器正在编译每个过程,sql服务器并不关心是否有一些语法错误,它是编译的,但智能感知工作得很好ALTER PROC [dbo].arrearsStep.pk_ArreacccxcxcxzfdsafsdfrsStepId --Example: the intellisense work and say this is wrong, but the sql--and customer.pk_CustomerId in (5037281)
AND contact.fk_ContactMedi