MSCEWI2086
Shell variables found, running this code in a shell script is required.
Severity
Description
#!/bin/bash
# define a shell variable
tablename="mytable"
# use the variable in a Teradata SQL query
bteq <<EOF
.LOGON myhost/myuser,mypassword
SELECT * FROM ${tablename};
.LOGOFF
EOFExample code
Input code
Output code
Recommendations
Last updated
