Comments in Queries

Help with reports & document templates
Post a reply

Comments in Queries

Postby adminboy » March 8th, 2012, 7:00 pm

Hi there,

How do I put comments in the SQL queries in the Report Source?

Thanks,
Adminboy
adminboy
 
Posts: 15
Joined: February 13th, 2011, 12:19 pm
Top

Re: Comments in Queries

Postby Support » March 9th, 2012, 12:31 pm

The SQL syntax for a comment is to start a line with '--' (without the quotes). However, due to our extended SQL parsing, this only works if you put the '--comment' at the end of the SQL query...

Code: Select all
select x, y, z
from atable
order by x;
-- some comments here

As an alternative, you could use the REPORT NOTES field to make notes about the SQL.
ClinicOffice Support Team
User avatar
Support
Site Admin
 
Posts: 874
Joined: August 25th, 2005, 6:37 pm
Top

Re: Comments in Queries

Postby adminboy » March 11th, 2012, 11:02 am

Thanks.
adminboy
 
Posts: 15
Joined: February 13th, 2011, 12:19 pm
Top


Post a reply

Return to Reports & Templates

Who is online

Users browsing this forum: No registered users and 2 guests