SQL SERVER2000 ???Щ????
???????????? ???????[ 2014/3/19 10:05:54 ] ????????SQL ??
????1.SQL Server 2000?в??????
?????????????Щ??????????????????????????????????????????Sysobjects??????????????????????????????????????????SQL???????
????Select *
????From sysobjects
????Where name like '%user%'
????2.?????????????????????и??е???????????????syscolumns??????????????????а?????user?????б??????????????SQL????????
Select *
From sysobjects s
Where Exists(
Select *
From syscolumns
Where ID = s.ID and name like '%user%'
)
????3 .SQL SERVER
?????????б?????
????select name from sysobjects where type='U'
?????????????????????
????Select name from syscolumns Where ID=OBJECT_ID('????')
????select * from information_schema.tables
????select * from information_schema.views
????select * from information_schema.columns
????4.ACCESS
?????????б?????
????select name from MSysObjects where type=1 and flags=0
????MSysObjects?????????????????????????????????????????????????????????????????
????1.????????????????
--???SqlServer?б??
SELECT syscolumns.name??systypes.name??syscolumns.isnullable??
syscolumns.length
FROM syscolumns?? systypes
WHERE syscolumns.xusertype = systypes.xusertype
AND syscolumns.id = object_id('??????')
????2.?????ε????????
????--???SqlServer?б?? ????????????
declare @table_name as varchar(max)
set @table_name = '??????'
select sys.columns.name?? sys.types.name?? sys.columns.max_length?? sys.columns.is_nullable??
(select count(*) from sys.identity_columns where sys.identity_columns.object_id = sys.columns.object_id and sys.columns.column_id = sys.identity_columns.column_id) as is_identity ??
(select value from sys.extended_properties where sys.extended_properties.major_id = sys.columns.object_id and sys.extended_properties.minor_id = sys.columns.column_id) as description
from sys.columns?? sys.tables?? sys.types where sys.columns.object_id = sys.tables.object_id and sys.columns.system_type_id=sys.types.system_type_id and sys.tables.name=@table_name order by sys.columns.column_id
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11