Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 escaped charactor

Author  Topic 

acdacd
Yak Posting Veteran

63 Posts

Posted - 2005-08-09 : 15:06:04
In stored proc,

I have query
select @q = 'select * from Table A where colA = 'ABC' '

How to escape the ['] before and after ABC?

THx

be a hardworking people!!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-08-09 : 15:09:54
select @q = 'select * from Table A where colA = ''ABC'''

Tara
Go to Top of Page
   

- Advertisement -