I am trying to create a script for finding the row count for some tables in sybase ase. I have used the below --
set nocount on
go
set proc_return_status off
go
select count(*) from schemaname.tablename1
select count(*) from schemaname.tablename2
select count(*) from schemaname.tablename3
go
Now it gives me the output as below
456
768
321
What i want is to append a table name beside the count.Like below
456 tablename1
768 tablename2
321 tablename3
Please guide me on the same
Best Regards,
Debadtya