0
私は「テクニカルライターMASTHANVALI」のような出力を得るために、次の操作を行いますしようとしています。JPAQL、連結操作
Exception in thread "main" java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager: Exception Description: Syntax error parsing [select concat(upper(ename) , " - ", deg)from employee].
[20, 25] The encapsulated expression is not a valid expression.
[37, 40] The expression 'deg' is not valid expression.
[54, 54] An identification variable must be provided for a range variable declaration.
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1605)
at com.tutorialspoint.eclipselink.service.ScalarandAggregateFunctions.main(ScalarandAggregateFunctions.java:14) Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.JPQLException
どうすればいいですか?
エラーメッセージがあなたに間違っている3つの事を伝えるの後にスペースを追加します。 "ename"は認識されません。 "deg"は認識されません。 「従業員」の後にエイリアスが必要です。 –