Re: there is an error in comments

From: hpuxrac <>
Date: Wed, 23 Dec 2009 15:58:07 -0800 (PST)
Message-ID: <>

On Dec 23, 7:35 am, Daneel Yaitskov <> wrote:


> > BEGIN echo('dddddd'); --comment; END;
> > Notice  your comment in this context is considered as actual (but
> > invalid) code.  Do this instead:
> You must admit that such behavior strong  differentiate from others
> languages for the rule of one-line comment. Solid bulk of languages
> C++, Bash, C#, Haskell, Lisp, TeX  etc. consider that one-line comment
> can begin in any place of a line excepting strings (a text between ").
> I guess major portion of PL/SQL programmers have first language Basic,
> Pascal or C.
> My resume is this feature tends to errors.
> But I don't see any causes that PS/Sql's syntaxes must differentiate
> from the mainstream languages.
> Daneel Yaitskov

My guess is that you do not use PLSQL much ... as long as we are offering wild guesses.

The line in question will work quite well as a comment in a real procedure. When feeding it in a line at a time thru sqlplus well not so much.

Perhaps one might actually test something out before offering broad based opinions?

Just a thought ... Received on Wed Dec 23 2009 - 17:58:07 CST

Original text of this message