MessageFormat.format("insert into table1 (a) values({0}) ", 12345);
这句话变成
insert into table1 (a) values(123,45);
非常大的陷井.
应该这么写
MessageFormat.format("insert into table1 (a) values({0, number, #}) ", 12345);
MessageFormat.format("insert into table1 (a) values({0}) ", 12345);
这句话变成
insert into table1 (a) values(123,45);
非常大的陷井.
应该这么写
MessageFormat.format("insert into table1 (a) values({0, number, #}) ", 12345);