Entity classes:
@ Data
@ the Entity
@ Table (name="telecommunication")
Public class KorahEmailCusotmer {
@ Id
Private String id;
@ the Column (name="contact_name")
private String name;
@ the Column (name="Email")
private String email;
@ the Column (name="company_name")
Private String CompanyName;
Public void setId (String id) {
this.id=id;
}
Public String getId () {
return id;
}
}
Public interface KorahEmailDAO extends JpaRepository
@ Query (nativeQuery=true, value="HTTP://https://bbs.csdn.net/topics/select distinct contact_name, company_name, Email" +
"From telecommunication \ n +"
"Where send_times!=1 and send_times!=- 2 \ n + "
"Limit? ;" )
List
}
CodePudding user response:
Select id, contact_name, company_name, Email +""From telecommunication
CodePudding user response:
I this table some contact_name, company_name and email with the same data, I need to go to,