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

Support SELECT ... WHERE .. without FROM #1111

Closed
dyzsr opened this issue Dec 1, 2020 · 1 comment
Closed

Support SELECT ... WHERE .. without FROM #1111

dyzsr opened this issue Dec 1, 2020 · 1 comment

Comments

@dyzsr
Copy link

dyzsr commented Dec 1, 2020

Feature Request

Is your feature request related to a problem? Please describe:

TiDB

mysql root@127.0.0.1:test> select 1 where 1 group by 1 having 1 order by 1
(1064, 'You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 14 near "where 1 group by 1 having 1 order by 1" ')

MySQL

mysql root@localhost:test> select 1 where 1 group by 1 having 1 order by 1;
+---+
| 1 |
+---+
| 1 |
+---+
1 row in set
Time: 0.008s

Describe the feature you'd like:

Support it like MySQL.

Describe alternatives you've considered:

Support

select 1 from dual where 1 group by 1 having 1 order by 1

Teachability, Documentation, Adoption, Migration Strategy:

@kennytm
Copy link
Contributor

kennytm commented Dec 2, 2020

thanks, but this is a duplicate of #115.

@kennytm kennytm closed this as completed Dec 2, 2020
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

2 participants