EXPLAIN /*!mycat:sql=select COUNT(1) from t_bet_order where TENANT_CODE=111101*/
UPDATE
t_bet_order AS b
INNER JOIN t_bet_order_data AS td
ON b.id = td.id
AND td.Lottery_number_id = 1
SET b.WIN_STATUS = td.win_status,
b.LOTTERY_NUMBER = td.LOTTERY_NUMBER,
b.odds = td.odds,
b.WIN_AMOUNT = td.win_amount,
b.WIN_SECRET = td.win_secret,
b.WIN_COUNT = td.win_count
mycat文档规定可以这样添加注解定位到具体执行sql的库表,但是jsp事务拦截器不支持报错:
could not execute native bulk manipulation query; nested exception is org.hibernate.exception.GenericJDBCException: could not execute
native bulk manipulation query
jpa不支持mycat1.6.5支持sql注解方案的问题:
mycat文档规定可以这样添加注解定位到具体执行sql的库表,但是jsp事务拦截器不支持报错: