dave08
09/17/2024, 11:30 AMToshihiro Nakamura
09/18/2024, 2:15 PMdave08
09/19/2024, 9:17 AMToshihiro Nakamura
09/21/2024, 11:24 AMselect * from /*% if true *//*# tableName *//*% else */employee/*% end */
However, since this is verbose, we are considering making it possible to write it as follows:
select * from /*% replace tableName */employee/*% end */
The above two SQL templates are transformed into the following SQL when the tableName
variable is assigned `department`:
select * from department
What do you think about this idea?dave08
09/22/2024, 9:20 AMreplace
isn't really clear what's replacing what... also it's really an embedded directive with a sample value... is there any other advantage to it? If so, why change the syntax from other sample values that come right after the directive?