Hello,
I am working with mySQL and want the ability to add data without having to validate if the data already exists.
mySQL has
. Can I use this on the server side?
here is my current add DSResponse code
type1ID and type2ID both are primary keys
I am working with mySQL and want the ability to add data without having to validate if the data already exists.
mySQL has
Code:
INSERT IGNORE
here is my current add DSResponse code
type1ID and type2ID both are primary keys
Code:
for (final long type1ID : type1IDs) { final Map<String, Object> object = new HashMap<>(); object.put("type1ID", type1ID); for (final Long type2ID : type2IDs) { object.put("type2ID", type2ID); new DSRequest("typeTable", DataSource.OP_ADD, rpcManager).setValues(object).execute() } }
Comment