develooper Front page | perl.dbi.users | Postings from February 2019

RE: Translate between DBI and SQL

Thread Previous | Thread Next
Fennell, Brian
February 11, 2019 16:13
RE: Translate between DBI and SQL
Message ID:
If you have a complete example of what you are starting with and what you want to end up with your question would be clearer.
If I understand you correctly:
You start with raw SQL such as you might enter into a Postgres command line tool (for example psql).
What you want is the equivalent Perl source code to define the identical SQL as a string literal.

Please look at the docs here:        (Especially the “.” Operator)        (Especially the “.=” Assignment Operator)

And see if that helps.

The information contained in this electronic mail transmission is intended only for the use of the individual or entity named in this transmission. If you are not the intended recipient of this transmission, you are hereby notified that any disclosure, copying or distribution of the contents of this transmission is strictly prohibited and that you should delete the contents of this transmission from your system immediately. Any comments or statements contained in this transmission do not necessarily reflect the views or position of Radial or its subsidiaries and/or affiliates.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About