What is '`' character called?

北城以北 提交于 2019-12-03 22:25:36

All sorts of things, but in programming mostly the back-quote or backtick,

Grave (pronounced Grahv, not like the synonym for tomb) or Grave accent.

From the Jargon file, the prime nerd reference which really should be an ISO standard :-)

Common: backquote; left quote; left single quote; open quote; ; grave.

Rare: backprime; backspark; unapostrophe; birk; blugle; back tick; back glitch; push; opening single quotation mark; quasiquote.

You can use Unicode table to find name of the symbol. There are utilities which let you search it, like gucharmap. It gives U+0060 GRAVE ACCENT for this symbol.

Talvi Watia

This answer or this answer provides a good definition.

In laymen's terms "no-shift-tilde" is also useful in PHP for keeping mySQL statements from crashing on single quotes on the table name.

SELECT * from `the_table_name` WHERE id=1 // best practice

For some reason certain PHP servers will choke on this:

SELECT * from 'the_table_name' WHERE id=1 // not preferred method

This normally works, but doesn't pass nice in strings:

SELECT * from "the_table_name" WHERE id=1 // how to escape this string?

Other than that, I don't use it much.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!