Postgresql:有没有来自Oracle sqlplus的“@@”psql版本?

时间:2016-05-16 20:11:58

标签: postgresql psql

Postgres客户端// load aws sdk exports.sendEmail = function(event, context, callback) { var aws = require('aws-sdk'); // load aws config aws.config.loadFromPath('config.json'); // load AWS SES var ses = new aws.SES({ apiVersion: '2010-12-01' }); // send to list var to = ['nimesh.verma@something.com'] // this must relate to a verified SES account var from = 'some@something.com' // this sends the email // @todo - add HTML version ses.sendEmail({ Source: from, Destination: { ToAddresses: to }, Message: { Subject: { Data: 'A Message To You Rudy' }, Body: { Text: { Data: 'Stop your messing around', } } } }, function(err, data) { if (err) throw err console.log('Email sent:'); }); } 是否具有类似Oracle SQLPlus psql的功能?

对于那些想知道@@做什么的人:它允许从另一个脚本调用相对的sql脚本。

1 个答案:

答案 0 :(得分:1)

Quote from the manual

  

\ir\include_relative filename

     

\ir命令与\i类似,但以不同方式解析相对文件名。在交互模式下执行时,这两个命令的行为相同。但是,从脚本调用时,\ir会解释相对于脚本所在目录的文件名,而不是当前工作目录。

相关问题