cursor
cursor copied to clipboard
How to use table comment to specify a table when generating a SQL statement
Hi, everyone: I'm testing cursor in my SQL writing job. It's great. But I have one suggestion, if a table can be refered using it's comment, it'll more readable and usable.
For example: create table a(id int) comment 'a test table';
When I offer a chat 'select all data from a', it will give a correct result. But the chat 'select all data from a test table', cursor will return a statement with other table, even if the table name is quoted.
Thank a lot!