I have two tables student(id, name, city), teacher(id, name, salary). And there are several rows which are needed to insert Mysql DB.
INSERT INTO student VALUES ('12', 'Tom', 'New York');
INSERT INTO student VALUES ('13', 'Jack', 'New York');
INSERT INTO teacher VALUES ('01', 'Joy', '42000');
INSERT INTO teacher VALUES ('02', 'Ryan', '39000');
The connector is JDBC in JAVA, could I write a single query to do it.