如果我有一个在SQL上运行的查询:
String contactWhere = " UNION SELECT FoldContact.FoldRSN,NULL PeopleRSNCode,'A' FileIndicator from People,Contact"
但是我们如何在jooq中传递 NULL PeopleRSNCrypt 和'A'FuleIndicator 。如果我们有
SelectQuery<Record> selectQuery = create.selectQuery();
selectQuery.addSelect(Contact.FOLD_CONTACT.FOLD_RSN);
答案 0 :(得分:3)
使用Factory.value("A").as("FIleIndicator")
和Factory.inline(null).as("PeopleRSNCrypt")