Article View: borland.public.vdbase.data.sql
Article #1258Re: Memory variable in Where clause
From: Steve Koterski
Date: Fri, 20 Mar 1998 00:00
Date: Fri, 20 Mar 1998 00:00
23 lines
1637 bytes
1637 bytes
On Fri, 20 Mar 1998 10:38:20 -0600, "David McCullough" <72223.2320@compuserve.com> wrote: >I have been trying to use a memory variable in a select * statement with a >statement such as SELECT * FROM FEATURES WHERE CODE = M->variable >Nothing I do seems to work. I hope a Visual Dbase ver. 7 for Dummies is >coming soon. I sure feel like one. The local SQL parser cannot use memory variables from the application front-end, whether the application is written in Visual dBASE, Delphi, or other. When you build the string that will be the SQL statement, keep the SQL-specific content as string literals and use Visual dBASE programming syntax to concatenate the string literals with the memory variable values. For example: SQLVar = 'SELECT * FROM FEATURES WHERE CODE = "' + M->variable + '"' ************************************************************************** Steve Koterski Borland International, Inc. http://www.borland.com/delphi (Remove the "SPICEDHAM2" from the address. Death to spam-bots!)
Technical Details
Message-ID:
<3515c6a0.14027086@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6eu59i$5jl3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,dd0309f1a85fd8d3 X-Google-Attributes: gidff5a1,public From: koterski@SPICEDHAM2borland.com (Steve Koterski) Subject: Re: Memory variable in Where clause Date: 1998/03/20 Message-ID: <3515c6a0.14027086@forums.borland.com> X-Deja-AN: 336038500 Content-Transfer-Encoding: 7bit References: <6eu59i$5jl3@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Borland International, Technical Publications Mime-Version: 1.0 Reply-To: koterski@SPICEDHAM2borland.com Newsgroups: borland.public.vdbase.data.sql