Machine-translated by Google. Questions are authored in English.
Top

Discussion

The Microsoft Access wildcards are ____ and ____ .

  • A.
    asterisk (*); percent sign (%)
  • B.percent sign (%); underscore (_)
  • C.underscore(_); question mark (?)
  • D.question mark (?); asterisk (*)

Answer: D

Correct answer: question mark (?); asterisk (*)

Microsoft Access departs from the SQL standard here. It uses * for any sequence of characters and ? for exactly one - the same characters MS-DOS used for file matching.

Standard SQL uses % and _ for those two roles. The difference is a practical trap: a query written in Access and moved to another engine does not fail with an error but simply returns nothing, because * is then matched as a literal asterisk. Access in ANSI-92 mode accepts the standard characters instead.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.