This topic is locked
[SOLVED]

When to use SQL Views?

4/5/2022 1:37:39 PM
PHPRunner General questions
J
jacktonghk authorDevClub member

When to use SQL views? For reports and charts? Thanks.

Sergey Kornilov admin 4/5/2022

Do you mean SQL Views in PHPRunner or SQL Views in the database? How are reports and charts relevant here?

J
jacktonghk authorDevClub member 4/5/2022

I mean SQL Views in PHPrunner

J
jacktonghk authorDevClub member 4/5/2022

I followed to example but I don't know how to insert variable {all_field_search}. Also, even my stored procedure shoudl return all records without using WHERE clause in the stored procedure. When I add the SQL View in the Dashboard and run the application, I cannot see anything on the Dashboard. Not know why the SQL View does not return any data

J
jacktonghk authorDevClub member 4/5/2022
Sergey Kornilov admin 4/5/2022

As a rule of thumb, you can use a SQL View when you need to use a SQL query that normal PHPRunner tables do support, i.e. a stored procedure call.