sql statement

waqas
08-22-2002, 01:56 AM
how can i concatenate the string for example i need to use where clause in a sql statement and match with a variable as it is done in vb or java.....

i mean something like this:
vb code:
str1 = "select * from table where fld1 = '" & var1 & "'"

How can i do this in VC++

Thanks
waqas

Flyguy
08-22-2002, 03:10 AM
you could use sprintf

reboot
08-22-2002, 07:34 AM
memcpy, strcat, sprintf, wsprintf (windows only)

waqas
08-22-2002, 07:36 PM
Thanks guys, it solved my problem....

waqas

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum