Closed
Description
if the sql is dynamic , how to use sqlc ?
for example:
/* name: ListAuthors :many */
SELECT * FROM authors where id = ? and name = ? and age = ? and school = ? and article_count = ?
ORDER BY name;
There is a multi query , if id and age is not set , the where condition can be omitted ,like this
SELECT * FROM authors where age = ? and school = ? and article_count = ?
Metadata
Metadata
Assignees
Labels
No labels