Auto complete in field list portion of SELECT
MikeyC
Posts: 249 Bronze 3
I just wanted to check and see how the auto complete is intended to work in the field list portion of a SELECT statement.
Given this query:
SELECT DISTINCT
tdl_id<cursor1>
INTO #test
FROM edic_cga_details<cursor2>;
If at <cursor1> location I type ", " nothing happens, until I start to type a field name. On the other hand if at <cursor2> location I type "WHERE " a suggestion pop-up immediately comes up. Same happens when adding and AND to the where.
Should the suggestion pop up come up as soon as I start to add a field in the field list section of a SELECT statement?
Given this query:
SELECT DISTINCT
tdl_id<cursor1>
INTO #test
FROM edic_cga_details<cursor2>;
If at <cursor1> location I type ", " nothing happens, until I start to type a field name. On the other hand if at <cursor2> location I type "WHERE " a suggestion pop-up immediately comes up. Same happens when adding and AND to the where.
Should the suggestion pop up come up as soon as I start to add a field in the field list section of a SELECT statement?
Comments
Thanks,
Bart
Principal Consultant
bartread.com Ltd
Given this query:
SELECT DISTINCT
tdl_id<cursor1>
FROM edic_cga_details<cursor2>;
If at <cursor1> location I type ", " nothing happens, until I start to type a field name. On the other hand if at <cursor2> location I type "WHERE " a suggestion pop-up immediately comes up. Same happens when adding and AND to the where.
Generally SQL Prompt only pops up the list once you've started typing a word, so you need to enter at least one character, however if you go to the "Triggering" screen you'll see a list of words after which the popup is automatically triggered. This explains the difference in behaviour you're seeing since by default Prompt is configured to pop up after WHERE.
Hope that helps.
Thanks,
Bart
Principal Consultant
bartread.com Ltd
I tried adding "," or ", " as a trigger word, but it doesn't appear to work. I'm not sure I would always want it to be a trigger anyhow, I would only want it to trigger when adding a field to a select statement probably. Probably not in a function or IN() clause, etc.
It isn't that big of a deal, I can start typing or hit ctrl-space, but it would be nice.
Thanks,
Bart
Principal Consultant
bartread.com Ltd
Thanks for all the quick help!