0

When I run a query in Azure Data Studio, instead of writing limit keyword everytime in the query. Is it possible to set the default value to some number , so that Results windows shows only that number of rows from the top. As of now it is displaying all the records which takes quite some time for some tables.

select * from Table limit 200; // I don't want to use limit keyword everytime.
rohan
  • 43
  • 4
  • The mssql extension has a `mssql.query.rowCount` setting, but (unfortunately) I see no such similar setting for the pgsql extension. – Thom A Jul 14 '23 at 11:57

1 Answers1

0

Apologies, Agreed with Thoms A setting row count by default is only supported for MsSQL not PostgreSQL.

The only way to get Results windows shows only that number of rows from the top is use query LIMIT and FETCH first N rows only.

  • Using FETCH first N rows only
select  * from table FETCH first 10 rows only
Pratik Lad
  • 4,343
  • 2
  • 3
  • 11