0

As for Example :-

UNIQUE KEY `nbatch_id`(`nbatch_id`,`ncourse_id`,`nbranch_id`,`vstu_rollno`,`Type`)

2 Answers2

1

It means the same thing as the double quotation mark means in other systems.

More information about the use of the grave accent character in SQL can be found here

Community
  • 1
  • 1
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
1

MySQL uses the back-tick (or back-quote) character as a non-standard delimiter for SQL identifiers (table names, column names, index names, etc.).

The ANSI SQL equivalent is the double-quote ("). You can make MySQL use the double-quote as an identifier delimiter by setting SQL_MODE='ANSI_QUOTES'.

Delimited identifiers are not strings. In SQL, string literals and date literals use the straight single-quote character ('), which is on the same key as " on a US keyboard.

Delimited identifiers aren't necessary most of the time. Their purpose is to allow you to use SQL reserved words as identifiers, or identifiers containing special characters not normally allowed in an identifier. See my answer to Do different databases use different name quote?

In the example you show, none of the identifiers strictly require delimiting. But some tools add them by default, just in case you were to use a reserved word, or a table name containing a space or something.

Bill Karwin
  • 538,548
  • 86
  • 673
  • 828