sql_get_value(+Cursor,+Column,+Type,-Value,-Ind)...
Move to
Next Prev
Up Top
See also
sql_begin
sql_close
sql_close_db
sql_commit
sql_connect_db
sql_declare
sql_descr_in
sql_descr_out
sql_disconnect_db
sql_dualcmd
sql_errmsg
sql_execute
sql_fetch
sql_fetch_buf
sql_fetch_n
sql_get_value
sql_inout
sql_inquire_ingres
sql_logoff
sql_logon
sql_open
sql_open_db
sql_rollback
IF Computer > IF/Prolog > Manuals > IF/Prolog V4.1 マニュアル > IF/Prolog Interfaces > SQLインタフェースマニュアル > IF/SQL述語レファレンス > sql_get_value

sql_get_value

MINERVA superseeded IF/Prolog. Please see http://www.ifcomputer.co.jp/MINERVA for details.

We discontinued to sell IF/Prolog Dec 31. 2003. Dedicated technical support for IF/Prolog ended Dec 31 2008. This site is maintained as a community service only.

sql_get_value(+Cursor,+Column,+Type,-Value,-Ind)

この述語は、Cursorに関連づけられた論理出力バッファから、Columnの現在値を取り出します。対応するsql_fetch_buf/2の呼出しが、あらかじめ成功していなければなりません。

ValueはTypeに変換されます。Typeは、integer、double、atom、atom(N)、またはdateのいずれかでなければなりません。

IndはValueのインジケータ値を返します。

Ind = -1 はNULL値を示します。 Ind = 0 はOKを示します。 Ind > 0 は文字列の切捨てを示します。

?- sql_get_value(c2,ename,atom,Value,Ind). Value = 'Musician' Ind = 0

?- sql_get_value(c2,dep,double,Value,Ind). Value = 20.0 Ind = 0

?- sql_get_value(c2,hiredate,date,Value,Ind). Value = date(89,12,31) Ind = 0

?- sql_get_value(c2,hiredate,atom,Value,Ind). Value = '31-DEC-89' Ind = 0

read on...
IF/Prolog by Siemens
Language
English
Japanese
German
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/IFProlog/Manuals/v4.1/advanced_feature/sql/predref/getval/home_en.html
published 2012/5/21 update 1995/11/6 (c) 1996-2009 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS