我希望获得帮助,将下面的1> inets:start().
ok
2> httpc:set_options([{proxy, {{"www-proxy.mycompany.com", 8000},["localhost"]}}]).
ok
3> httpc:get_options(all).
{ok,[{proxy,{{"www-proxy.mycompany.com",8000},
["localhost"]}},
{https_proxy,{undefined,[]}},
{pipeline_timeout,0},
{max_pipeline_length,2},
{max_keep_alive_length,5},
{keep_alive_timeout,120000},
{max_sessions,2},
{cookies,disabled},
{verbose,false},
{ipfamily,inet},
{ip,default},
{port,default},
{socket_opts,[]},
{unix_socket,undefined}]}
4> httpc_manager:set_options([{proxy,{undefined, []}}],httpc_manager).
ok
5> httpc:get_options(all).
{ok,[{proxy,{undefined,[]}},
{https_proxy,{undefined,[]}},
{pipeline_timeout,0},
{max_pipeline_length,2},
{max_keep_alive_length,5},
{keep_alive_timeout,120000},
{max_sessions,2},
{cookies,disabled},
{verbose,false},
{ipfamily,inet},
{ip,default},
{port,default},
{socket_opts,[]},
{unix_socket,undefined}]}
语句转换为等效的netezza。
applysimple
我认为我需要将ApplySimple("(
select top 1 tradyrcode
from tradingyear
where tradyrcode < (
select max(tradyrcode)
from yrdays yd, control c
where c.systemdate = yd.datecode
)
order by 1 desc
)",0)
更改为top 1
才能在netezza中使用。
任何帮助将不胜感激!
答案 0 :(得分:0)
在语句的开头是“ top nn”,而在可能的“ order by”之后,“ limit nn”必须在末尾:
select tradyrcode
from trading-year
where tradyrcode < (
select max(tradyrcode)
from yrdays yd, control c
where c.systemdate = yd.datecode
)
order by 1 desc
limit 1