Re: prepared sql statements
- From: "kaushal" <onlyformfc@xxxxxxxxx>
- Date: 20 Dec 2006 23:32:39 -0800
sir actually the thing is that i am using "odbc api" which is a part of
vc++ so i have asked it to vc group . i know the syntaz of insert into
statement but when i m using the feature odbc api that is "prepared sql
statements" the problem happens. which already i had described
so please if u have any solution then tell me.
Bob Barrows [MVP] wrote:
kaushal wrote:
i had made the simple application to insert a single record to visula
foxpro table(assume that table is having only one field) using
prepared statement but now when i have to insert more than one data
each time i have to bind that row and each time i have to use
SQLExecute function, so is it possible to insert multiple data by
just using single time execution of SQLExecute() function if it is
possible then plz help me.
I don't know. It depends on if Foxpro supports batched sql statements. You
might try asking in a foxpro group.
In other databases, you can use a union query to insert multiple records:
insert into table (col1)
select val1
union all select val2
union all select val3
Again, I don't know if foxpro supports this.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Follow-Ups:
- Re: prepared sql statements
- From: Bob Barrows [MVP]
- Re: prepared sql statements
- References:
- prepared sql statements
- From: kaushal
- Re: prepared sql statements
- From: Bob Barrows [MVP]
- prepared sql statements
- Prev by Date: Re: Finding Out DSN Selected by User
- Next by Date: Re: prepared sql statements
- Previous by thread: Re: prepared sql statements
- Next by thread: Re: prepared sql statements
- Index(es):
Relevant Pages
|
|