查询SQL中的感叹号 [英] Exclamation Marks in a Query SQL

查看:316
本文介绍了查询SQL中的感叹号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读此查询,并且遇到了一行我不理解的行

I'm reading over this query, and I came upon a line where I don't understand heres the line

[FETT List]![FETT Search]

  1. FETT列表是一个表格
  2. FETT搜索是FETT列表中的一列

有人可以解释感叹号的含义吗?

Can someone explain what the exclamation mark means?

谢谢

推荐答案

通常,您会在MS Access代码中看到此信息(对于感叹号,这是SQL Server的句点).您可以通过table.column来引用列,或者如果为表赋予别名,则可以通过alias.column来引用.如果要在使用联接时指定具体信息,则可以执行此操作,或者当查询/联接中的两个(或多个)表在每个表中具有相同的列名时,可能必须这样做.

Generally you see this in MS Access code (for the exclamation mark, a period for SQL server). You can refer to a column by table.column or if you give the table an alias, then by alias.column. You might do this if you want to be specific when using joins, or you may have to do it when two (or more) tables in a query/join have the same column name in each table.

这篇关于查询SQL中的感叹号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆