Substring in a template
How can I get a substring of a variable in a template? This seems like a pretty common thing to want to do.
ie.,
A table named Cats, with a pkey of CatdId, Dogs/DogId, etc.
``select x.$key$, x.Name from $table$ where DeletedOn is null;``
It would be nice to define $key$ as concat(chop($table$, 1), "Id")
~S
Please sign in to leave a comment.
sorry, but this is not the right forum for such queries. I'd suggest asking this at https://intellij-support.jetbrains.com/hc/en-us/community/topics/200381555-DataGrip (or, even better, at http://stackoverflow.com)