MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Substitution inside an SQLExecute statement

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64075] Re: [mg64062] Substitution inside an SQLExecute statement
  • From: Chris Williamson <chrisw at wolfram.com>
  • Date: Tue, 31 Jan 2006 01:14:22 -0500 (EST)
  • References: <200601300410.XAA29450@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You can use a syntax such as...

SQLExecute[conn, "UPDATE MathTest SET sireId = `1` WHERE nameId =`2`", 
{5, 6}]

Chris Williamson

Patricia-and-Charles Jones wrote:

>When I use Mathematica to connect to a database an expression such as
>SQLExecute[conn,"UPDATE MathTest SET sireId = 5 WHERE nameId =6"] works
>correctly. However, I would like to be able to replace the 5 and 6 with 
>variables computed
>exterior to  the SQLExecute statement but evaluated within the SQLExecute 
>statement. The " "
>quotes present a stumbling block as they prevent evaluation of exterior 
>vaiables, I think.
>
>  
>


  • Prev by Date: RE:General--A Minor Annoyance
  • Next by Date: Re: Substitution inside an SQLExecute statement
  • Previous by thread: Substitution inside an SQLExecute statement
  • Next by thread: Re: Substitution inside an SQLExecute statement