Need help for a SQL building example. #2186
erickaufmann16
started this conversation in
General
Replies: 1 comment
-
Greetings. void insertDemo() {
Insert insert =
new Insert()
.withTable( new Table("test"))
.withSelect(
new Values()
.addExpressions(
new StringValue("A")
, new StringValue("B")
)
);
TestUtils.assertStatementCanBeDeparsedAs(
insert
, "INSERT INTO test VALUES ('A', 'B')"
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
In the 'Extending a simple insert' in this page: https://github.com/JSQLParser/JSqlParser/wiki/Examples-of-SQL-building, the 'Insert' type doesn't have a getItemsList() method. It does have a getWithItemsList() method. Is there a change of the API since the publication of the page? I also can't find the ‘ExpressionList’ class in your API. The version I am using is jsqlparser-5.1-SNAPSHOT.
Beta Was this translation helpful? Give feedback.
All reactions