获取数据库所有字段名语句问题

select * from syscolumns where offset!=0 order by offset 这里是获取用户字段名 但是offset在这里作用是什么?什么意思?晕 我吧 offset!=0 去掉了就显示出系统表格的字段了是不是系统字段的offset=0的
2026年09月28日 20:53
有3个网友回答
网友(1):

SQL查看所有表名:
1、select name from sysobjects where type='U'

2、select * from information_schema.tables

查询表的所有字段名:
Select name from syscolumns Where ID=OBJECT_ID('表名')

select * from information_schema.tables
select * from information_schema.views
select * from information_schema.columns

Oracle查看所有表名:select table_name from user_tables

ACCESS查看所有表名:
select name from MSysObjects where type=1 and flags=0
MSysObjects是系统对象,默认情况是隐藏的。通过工具、选项、视图、显示、系统对象可以使之显示出来。
offset在这里作用是z返回运行的意思

网友(2):

这个SQL 语句的意思是 从第几条开始,
意思是查找非空的记录,然后排序

网友(3):

指针的偏移量