|
-
Mar 3rd, 2009, 10:07 AM
#1
Member
Re: [2008] Using variables in an SQL string
I am somewhat of a newby, but in the past, I have done it like this:
strSQL = "UPDATE rate SET count = " + variable + " WHERE ID = 1;"
I break up the string into parts and insert the variables in between. The variable will need to be converted to a string (variable.tostring).
Hope this helps!
Last edited by Redeye44us; Mar 3rd, 2009 at 10:18 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|