sql_descr_out(+Cursor,+TypeSpec)...
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_descr_out

sql_descr_out

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

We discontinued to sell IF/Prolog Dec 31. 2003. For current customers, we continue to provide professional support for IF/Prolog until Dec 31, 2008.

sql_descr_out(+Cursor,+TypeSpec)

この述語は、カーソルCursorに関連づけられた論理出力バッファから後でsql_fetch/4またはsql_fetch_n/5を使って取り出されるデータ要素のデータ型を定義します。

TypeSpecは、N = Type、Column=Valueのどちらか、それらのリスト(例:[N1=Type1, Column=Type2,...])、あるいは型のリスト(例:[型1,型2,...]) です。型としてはinteger、double、atom、atom(N)またはdateのいずれかをとることができます。

型を並べたリストの形式のTypeSpecの場合は引数の順序が重要ですが、他の場合には関係ありません。

型のデフォルトはアトムです。

atom(N)では、アトムの文字列の長さがNに限られます。

?- sql_descr_out(c2,1=atom). yes

?- sql_descr_out(c2,dep=double). yes

?- sql_descr_out(c2, 1=atom(10),dep=double,3=date ). yes

?- sql_descr_out(c2, atom(10),double,date ). yes

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/desout/home_en.html
published 2008/11/17 update 1995/11/6 (c) 1996-2006 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