-
Notifications
You must be signed in to change notification settings - Fork 3.9k
9.0 注解用法
lightfish edited this page Nov 29, 2020
·
11 revisions
/*!mycat:dataNode = dn1 */ SELECT * FROM cont
/*!mycat:dataNode = dn1 */ SELECT * FROM cont
/*!mycat:dataNode = dn1 */ insert INTO cont (taobaoId,name) VALUES (111,'db1')
/*!mycat:dataNode = dn2 */ insert INTO cont (taobaoId,name) VALUES (111,'db2')
/*!mycat:dataNode = dn3 */ insert INTO cont (taobaoId,name) VALUES (111,'db3')
/*!mycat:schema = TESTDB */ SELECT * FROM cont;
/*!mycat:catlet=io.mycat.catlets.ShareJoin */ select * from cont db1 join cont db2 on b.id=a.days order by a.id;