I want to achieve the below 2 scenarios in a single query. (Note- This is just for reference, the actual query is different)
1. SELECT * FROM CUSTOMER.CUSTOMER LIMIT :startingRow, rowsCount; //WITH LIMIT
2. SELECT * FROM CUSTOMER.CUSTOMER; // NO LIMIT
Is it possible to write a single conditional query for this? If I pass starting row and rows count params it should go for 1st condition and if no input params are passed, it should give me all records from a table.
SELECT VERSION();.