Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run lingual SQL code as script file and pass the variable value as parameter or property file #12

Open
danish-alam opened this issue Jan 30, 2014 · 1 comment

Comments

@danish-alam
Copy link

Hi,
I am converting Teradata Queries to lingual sql.
in Teradata script file we have variables as ${Teradata_schema}.TableName for which the values need to be passed from command line or property file.

I am not getting any way to do this

  1. Run the lingual sql query as a script file.
  2. How to pass the parameter from command line or read the parameter from property file.

Please help me on this issue, as I am struck and not able to move forward.

Regards,
Danish

@fs111
Copy link
Contributor

fs111 commented Jan 30, 2014

Can't you just pipe it through something like sed or m4 before you hand it off to lingual?

sed "s/foo/bar/g" some.sql | lingual shell 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants