Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Openquery
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00881389
Message ID:
00881495
Views:
35
>Sergey,
>
>one last question (for now), in my openquery I want to do a test on a character field:
>select * from openquery(ls,'select * from table where field='CHAR'')
>How can I do this correctly ? SQL returns an error because of the double quotes.

You double single quotes iside the string literal.
select * from openquery(ls,
      'select * from table where field=''CHAR''')
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform