How to use Anylogic Database Query tool to insert table values in code -
i have started using anylogic 7.3. trying use "insert database query" tool inside anylogic in order insert values database table have created in anylogic. table created has many values , insert each time value column2 based on value of column 1 changing until loop satisfied.
i anylogic choose , insert value in column 2 database given value in column 1 equal xx ( variable having value in function). assign value "probofwin". xx changing since inside loop.
in "insert database query" tool selecting table name "prob low bid" choosing column2 "n_3" value column. choice condition selecting column1 "x" choosing equals , typing "xx" variable in code function. code generated anylogic inside loop.
probofwin = (double) selectfrom(prob_low_bid) .where(prob_low_bid.x.eq(xx)) .firstresult(prob_low_bid.n_3); }
thank you
Comments
Post a Comment