Results 1 to 4 of 4

Thread: What does this mean!!

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Answers
    13

    What does this mean!!

    Hi friends,

    I came across a strange thing today. There was a query

    select *from emp order by name,sal --

    I dnt know what does -- stand for in the above query. I couldnt find out the difference with -- or without --. Please help me understand this.

    Thanks in advance,
    Divya


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: What does this mean!!

    -- is not part of the syntax.

    -- anything after the double-hyphen is a comment in DB2


  3. #3
    Junior Member
    Join Date
    Sep 2007
    Answers
    13

    Thumbs up Re: What does this mean!!

    Quote Originally Posted by debasisdas View Post
    -- is not part of the syntax.

    -- anything after the double-hyphen is a comment in DB2
    thanks buddy, You are helpful.


  4. #4
    Junior Member
    Join Date
    May 2008
    Answers
    2

    Re: What does this mean!!

    We use -- in QMF/QMF for WIndows/SPUFI to comment out any thing.

    He must have started to type comments about an SQL left the -- in there


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact