如何在MS Access查询中生成序列号列?

编程入门 行业动态 更新时间:2024-10-19 04:32:25
本文介绍了如何在MS Access查询中生成序列号列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在MS Access查询中生成序列号列以及其他记录。 例如。 AAA 32 BBB 12 CCC 23 输出应该是: 1 AAA 32 2 BBB 12 3 CCC 23

How to Generate Serial Number Column in MS Access Query along with other Records. For Eg . AAA 32 BBB 12 CCC 23 Output Should be : 1 AAA 32 2 BBB 12 3 CCC 23

推荐答案

使用Autonumber类型向数据库添加Identity列。 Add an Identity column to your database with the type "Autonumber".

可以使用DCOUNT()函数实现指定相对参考。要求col。 It can be achieved using DCOUNT() Function Specifying relative ref. to required col.

不能在Ms Access Table上写这种查询,只在执行查询时有序列号。您必须在Ms Access Table中添加一列,如前面的答案中所述,以获取输出中的序列号。 It is not possible to write such kind of query on Ms Access Table to have serial number at the time of executing query only. You have to add a column in Ms Access Table as describe in previous answer to get Serial Number in Output.

更多推荐

如何在MS Access查询中生成序列号列?

本文发布于:2023-10-26 23:49:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1531701.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:序列号   如何在   MS   Access

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!