① select count(1) from syscolumns where id=object_id(‘tablename‘)
② select count(*) from syscolumns where id=object_id(‘tablename‘)
③ select max(colid) from syscolumns where id=object_id(‘tablename‘)
时间: 2024-12-16 15:37:33
① select count(1) from syscolumns where id=object_id(‘tablename‘)
② select count(*) from syscolumns where id=object_id(‘tablename‘)
③ select max(colid) from syscolumns where id=object_id(‘tablename‘)