如何在选择查询中创建新列 [英] How to create a new column in a select query
本文介绍了如何在选择查询中创建新列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在MS Access中,我想在选择查询的返回结果中插入新列.新列的每一行都具有相同的值.例如,我的select返回A,B列,而我希望C成为由select查询创建的新列:
In MS Access, I want to insert a new column into the returned result of a select query. The new column has the same value for every row. For example, my select returns columns A, B and I want C to be the new column created by the select query:
A B C
----------
a1 b1 c
a2 b2 c
a3 b3 c
推荐答案
select A, B, 'c' as C
from MyTable
这篇关于如何在选择查询中创建新列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文