How do I use session variables in Netezza nzsql?
问题 How do I create and use session variables in Netezza nzsql ? How can I use session variables as part of strings? Can I concatenate session variables with strings? Can I embed session variables in strings? How can I use them as part of table names or column names? 回答1: Basic Variable Usage The documentation for session variables in Netezza nzsql is somewhat lacking. It states that in order to set a variable within a script or at the nzsql prompt, you use \set . \set var value You can also