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
|