Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure

Status
Not open for further replies.

lisa626

Programmer
Aug 9, 2006
92
US
I am VERY NEW to SQL coding, I am looking at a previously created stored procedure used in a report, it has the following code in it, can someone give me an idea of what it means or where I can get further info on it??? Does the --in front of the line make it a comment???

--and
--(TICKET_No like '8%' or len(TICKET_No) < 8 or
--TICKET_No = '' or TICKET_No is null)
--get current periods totals for Car
 
2 dashes indicate a comment (for the remainder of the line). You can comment a block of code with this...

/*

Any number of lines.

*/

The dashes can go anywhere on the line. I've seen stuff like...

[tt]
Select Field, -- This is a comment
AnotherField -- Another comment
From Table -- This is the table
[/tt]

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
I thought so but just wanted to make sure I was thinkn correctly. THANKS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top