Insérer un commentaire dans une requête SQL Access

Hello,

I'm trying to insert a simple comment in the SQL code of a simple query I typed in Access.
The standard -- doesn't seem to work, I'm getting a syntax error.
It shouldn't be that difficult, but I can't figure it out.
Could someone please tell me?

Thanks in advance?
Configuration: Windows XP Firefox 3.0

4 answers

  • Votes
  • Date
  • Descending date
  1. Hello,

    Look here for the information:
    https://www.commentcamarche.net/contents/1062-le-langage-sql

    Otherwise, know that:
    It is possible to add comments using:

    * the character %. All characters that come after it on the same line will not be interpreted
    * the delimiters /* and */. All characters between the delimiters are considered comments

    --
    The truth belongs to those who seek it and not to those who claim to possess it.
    (don't forget to mark resolved if you have found your happiness: think of others^^')
    1. None of the proposed comments work in ACCESS 2002:

      % does not work
      %% does not work
      /* does not work */
      -- does not work
    2. Hahaha Xorad the useless who posts in reply but not the answer.
      1. Hello,

        Wouldn't your question be about SQL injection, by any chance?

        Well, in any case, you must not be very resourceful to post a question like that on a forum, but good luck.

        Xorad320
        1. And "you don't have to be very resourceful" to respond to things like that.