|
Помогите бигинеру: как из перл скрипта вызвать хранимую функцию?
|
|||
---|---|---|---|
#18+
Есть хранимая функция: CREATE FUNCTION LongCost (orders.portfolio_id%TYPE) RETURNS orders.price%TYPE AS 'select round(sum((price - lasttrade)* quantity ),2) from orders, ticks where orders.tick_id=ticks.id and orders.portfolio_id=$1' LANGUAGE 'sql'; По запросу из sshclient SELECT LongCost ( 1672 ) ; все ок. Вызвать ее из перл-скрипта - не могу. Пробовал так: $sth = $dbh->prepare("SELECT LongCost ( 1672 ) ; "); $sth->execute(); ... |
|||
:
Нравится:
Не нравится:
|
|||
13.08.2003, 18:49 |
|
|
start [/forum/topic.php?fid=53&msg=32235882&tid=2008145]: |
0ms |
get settings: |
11ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
32ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
40ms |
get tp. blocked users: |
2ms |
others: | 17ms |
total: | 141ms |
0 / 0 |