Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我让一个开发人员为我创建了一些代码,他在整个 SQL 语句中使用了有角度的单引号。我以前从未使用过这些,希望有人能解释成角度和直线之间的区别?
如果我用直引号替换所有有角度的查询,则查询不起作用。
斜引号(`,实际上称为反引号)用于分隔标识符,例如字段和表名。直引号用于分隔字符串,例如'Hello, world!'. 你不能把两者混在一起。
`
'Hello, world!'