|
-
Mar 19th, 2000, 07:51 AM
#1
Thread Starter
Addicted Member
hello,.. I have a problem with an sql statement and the insert into command.
say the string I want to insert is THAI'S POST
well since it has a ', how do you make it work with sql without making the string a variable? any suggestions?
thanks,
Thai
-
Mar 19th, 2000, 04:15 PM
#2
Addicted Member
Use chr(34) instead of '
sStr = "THAI" & chr(34) & "S POST"
-
Mar 19th, 2000, 11:31 PM
#3
Frenzied Member
When dealing with SQL in the SQL server Enterprise manager you double up the single quote. For example:
select * from table where text like '%''%'
will get you any instance of a single quote in the field.
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
|