0
如何添加多個更新sql語句?在這個例子對於那些ID 2,3,4,5DbSetup:多個SQL更新
public static final Operation INSERT_LANGUAGE_DATA =
Operations.sequenceOf(Operations.insertInto("LANGUAGE")
.columns("ID","DWH_CODE", "LANGUAGE" ,"NAME")
.values(1, 0, "en", "language.english")
.values(2, 7, "cs", "language.czech")
.values(3, 1, "de", "language.german")
.values(4, 2, "es", "language.spanish")
.values(5, 3, "fr", "language.french")
.build(),
sql("UPDATE CUSTOMER set LANGUAGE_ID = 1 where ID = 1")
);
酷!謝謝@JB Nizet – theresa 2015-02-12 09:05:05