Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跨库join、orderbylimit 等现在支持了么? #68

Open
windyrobin opened this issue Jan 4, 2016 · 9 comments
Open

跨库join、orderbylimit 等现在支持了么? #68

windyrobin opened this issue Jan 4, 2016 · 9 comments

Comments

@windyrobin
Copy link
Member

我看邱硕的 ppt 里:
分页排序:

SELECT c1 FROM tb1 ORDER BY c1 LIMIT 4, 2

跨库join:

SELECT *
  FROM tb1 INNER JOIN tb2
    ON t1.MEMBER_ID=t2.NAME
 WHERE t1.gmt>600
   AND t2.time>600

都是ok的?

@liuhuanting
Copy link

你有听说过「PPT大法」么=。=

@windyrobin
Copy link
Member Author

我擦, 想用cobar来着,担心各种功能受限,
mycat 吧,看起来也貌似不太靠谱

@liuhuanting
Copy link

有能力就直接自己研究着改吧

@windyrobin
Copy link
Member Author

哥也是醉了:

MySQL [dbtest]> select * from tb2;
+-----+-------+
| id  | val   |
+-----+-------+
|   1 | part1 |
|   2 | part1 |
| 513 | part2 |
+-----+-------+


MySQL [dbtest]> select id, count(*) from tb2;
+-----+----------+
| id  | count(*) |
+-----+----------+
|   1 |        2 |
| 513 |        1 |
+-----+----------+
2 rows in set (0.01 sec)


MySQL [dbtest]> select id, count(*) from tb2 where id > 0;
+-----+----------+
| id  | count(*) |
+-----+----------+
|   1 |        2 |
| 513 |        1 |
+-----+----------+
2 rows in set (0.00 sec)

MySQL [dbtest]> select id, count(*) from tb2 where id < 3;
+----+----------+
| id | count(*) |
+----+----------+
|  1 |        2 |
| NULL |        0 |
+----+----------+
2 rows in set (0.00 sec)

MySQL [dbtest]> select * from tb2 where id < 3;
+----+-------+
| id | val   |
+----+-------+
|  1 | part1 |
|  2 | part1 |
+----+-------+

ppt 吹得也太大了 ...

主要是没时间投入来改这些了..

@shellyxue
Copy link

这个都停止维护了

@shellyxue
Copy link

mycat吧

@Sylvanas521
Copy link

这个停止维护了吗?想问一下这个如果路由规则改变,数据迁移是要自己实现吗?

@liuhuanting
Copy link

@Sylvanas521 1:是的。2:是的。

@bucketli
Copy link
Member

bucketli commented Jun 7, 2016

可以使用DRDS https://www.aliyun.com/product/drds/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants