INSERT INTO `order`(order_user,total_price,order_time) VALUES (?,?,?);
INSERT INTO order_detail(order_id,book_id,count) VALUES (?,?,?);
INSERT INTO order_detail(order_id,book_id,count) VALUES (?,?,?)
The second and third SQL statements depends on the first one (need to get the insert id), I wonder how should I write the code to make the transaction works using the serverless-mysql module.