如何在JOOQ中传递参数(Null)和硬编码值

时间:2013-09-27 08:23:34

标签: java sql jooq

如果我有一个在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);

1 个答案:

答案 0 :(得分:3)

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