comments in SQL query

G

Guest

Hi,

Is it possible to add comments within SQL queries (in SQL view). If so,
what is the correct syntax?

E.g.
//I want comments in SQL view of my query to appear
//Comments: This query selects everything from table x
Select * From x

Thnks in advance
 
B

Brian Wilson

Help me said:
Hi,

Is it possible to add comments within SQL queries (in SQL view). If so,
what is the correct syntax?

E.g.
//I want comments in SQL view of my query to appear
//Comments: This query selects everything from table x
Select * From x

Thnks in advance


There is no standard way to do this. A query has a description which can be
viewed in the database window and would be suitable for the simple example
you gave. If you needed something more complex then you would have to do
something more imagintive for example having a vba module which creates the
query - that would allow the comments within the coding.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top