|
Помогите бигинеру: как из перл скрипта вызвать хранимую функцию?
|
|||
---|---|---|---|
#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/moderation_log.php?user_name=a_Vitalik]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
get settings: |
7ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
150ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
others: | 565ms |
total: | 812ms |
0 / 0 |