MTNCOMP | List View | Table View | myBlog (1789 Entries) ![]() |
use test1
sp_tables
create table testc (
row_id int identity,
num1 int null,
num2 float null
)
-- alter table testc add num3 money null
-- drop table testc
declare @i int
select @i = 1
while @i < 100
begin
insert into testc (num1, num2, num3) values (rand() * 10000, rand(), rand() * 100000)
select @i = @i + 1
end
-- create index myindex_testc on testc (row_id)
-- select count(*) from testc
-- delete from testc
-- select * from testc
-- select * from testc order by row_id desc
That's it! the results look like this. select * from testc order by row_id desc
© 2025 myBlog™ v1.1 All rights reserved. We count views as reads, so let's not over think it.