如果我有一个在SQL上运行的查询,它是:

String contactWhere = " UNION SELECT FoldContact.FoldRSN,NULL PeopleRSNCode,'A' FileIndicator from People,Contact"


但是我们如何在jooq中传递NULL PeopleRSNCrypt和'A'FIleIndicator。如果我们有

SelectQuery<Record> selectQuery = create.selectQuery();
        selectQuery.addSelect(Contact.FOLD_CONTACT.FOLD_RSN);

最佳答案

使用Factory.value("A").as("FIleIndicator")Factory.inline(null).as("PeopleRSNCrypt")

10-08 18:03