sql_descr_in(+Cursor,+ValueSpec)...
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_in

sql_descr_in

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_descr_in(+Cursor,+ValueSpec)

この述語はCursorに連係するコマンドのバインド変数の具体化を行ないます。

ValueSpecは、N = Value、Name=Valueといった形式を一つ、あるいはいくつか並べたリストで指定します。例:

[N1=Value1,Name2=Value2,...].

ORACLEでのバインド変数名:

バインド変数は、相対的な数Nまたは(コロン':'のつかない)「名前」で参照することができます。「名前」に使われる文字の大文字/小文字は区別されません。

INFORMIXとINGRESでのバインド変数:

バインド変数は、相対的な数で参照(reference)しなければなりません。

NULL値は、Prologの項`[]'で指定することができます。 ORACLEでは、SQL INSERTコマンドでNULL値を使用することができません(SQL UPDATEでのみ使用可能)。

次のサンプルは、

'select * from emp where dep = :dep and job = :job'

のようなSQLコマンドのバインド変数を示しています。

?- sql_descr_in(c1,job = 'Manager'). yes

?- sql_descr_in(c1,'JOB' = 'Musician'). yes

?- sql_descr_in(c1,2 = 20). yes

?- sql_descr_in(c1, [dep = 20, 1 = 'Musician']). yes

?- sql_descr_in(c1,2 = []). 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/desin/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