matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.76k stars 273 forks source link

[Question]: MO doesn't support query data with table syntax #17635

Open shawn0915 opened 1 month ago

shawn0915 commented 1 month ago

Describe your problem

MatrixOne exhibits high compatibility with MySQL 8.0, including transmission protocol, SQL syntax

MO 兼容 mysql 8 的语法,但是这个语句报错。

MySQL [mo_task]> table sys_cron_task;
ERROR 1064 (HY000): SQL parser error: You have an error in your SQL syntax; check the manual that corresponds to your MatrixOne server version for the right syntax to use. syntax error at line 1 column 5 near "table sys_cron_task";
allengaoo commented 1 month ago

你好 Shawn,

感谢你的反馈。 我自己试了一下, mysql 确实可以通过“table ” 语句来实现“select * from ” 的功能。 对于这个功能 MO 还没有支持。

这个功能看起来是一个select 语句的一个简化命令,来方便用户查看一些测试用的尺寸很小的表。 我想了解下现在这个问题是否对您进行 MO 相关的使用造成一些影响?

谢谢 高斌

shawn0915 commented 1 month ago

@allengaoo 感谢回复,是个简要语法,不止可用于mysql也适用于其他数据库,建议mo也支持。

allengaoo commented 1 month ago

感谢您的反馈, 这个需求我们会和研发沟通,在有回复之后,及时沟通。